def trim(s): if len(s)>0: if s[-1]==" ": s=s[:-2] if s[0]==" ": s=s[2:] return s
Sign in to make a reply
¤