DEV Community

loading...

Discussion on: Daily Challenge #1 - String Peeler

Collapse
teotcd profile image
JedDevs • Edited

The SmEXy python.

ToModify = input("Input:")
size = len(ToModify)
if size > 2:
  print(ToModify[1:-1])
else:
   print("String can't be less than two characters")
Forem Open with the Forem app