DEV Community

loading...

Discussion on: Daily Challenge #1 - String Peeler

Collapse
bauripalash profile image
Palash Bauri 👻

Here The Journey Begins.. 🚀

Python

def challenge1(s):
    if len(s)<2:
        return None
    else:
        return s[1:-1:]
Forem Open with the Forem app