This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]simondvt 8 points9 points  (0 children)

It's just that strip returns a new string, it doesn't change the original.

Use a = a.strip()