if s:
if s[0] == ' ':
return trim(s[1:])
elif s[-1] == ' ':
return trim(s[:-1])
else:
return(s)
Sign in to make a reply
Nb-Boom
if s:
if s[0] == ' ':
return trim(s[1:])
elif s[-1] == ' ':
return trim(s[:-1])
else:
return(s)
else:
return(s)