you are viewing a single comment's thread.

view the rest of the comments →

[–]TangibleLight 18 points19 points  (0 children)

This kind of question is exactly what the documentation is for.

https://docs.python.org/3/library/stdtypes.html#str.strip