Question

How to remove spaces from the end of a string in Python?


Annonce
Ad

Answer

With rstrip():
output = string.rstrip()


[source]
# ID Query