if s[:1] == ' ':
return trim(s[1:])
elif s[-1:] == ' ':
return trim(s[:-2])
else:
return s
Sign in to make a reply
Jerry bonus
if s[:1] == ' ':
return trim(s[1:])
elif s[-1:] == ' ':
return trim(s[:-2])
else:
return s