DEV Community

loading...

Discussion on: Daily Challenge #1 - String Peeler

Collapse
highcenburg profile image
Vicente G. Reyes • Edited

Python

def remove(yo):
    if yo <= 2:
        print("Not enough characters in string")
    else:
    return yo[1:-1]
Forem Open with the Forem app