DEV Community

loading...

Discussion on: Daily Challenge #1 - String Peeler

Collapse
heebakhan6 profile image
heeba khan

this is very basic but i'm just a beginner :

a = "challenge of the day"

if (len(a)) > 2:
print( a[ 1 : len(a)-1])
else :
print(a)

Forem Open with the Forem app