def trim(s): if s[0] == ' ': s = s[1:] return trim(s) if s[-1] == ' ': s = s[:-1] return trim(s) return s
Sign in to make a reply
520bv