Solve Problems by Coding Solutions - A Complete solution for python programming
Blog Pages
▼
String operations to remove white spaces
s=" t ioi ii "
t1=s.rstrip() # removes trailing white space
t2=s.lstrip() # removes leading white space
t3=s.strip() # removes leading and trailing white space
No comments:
Post a Comment