Question

How to remove spaces from both beginning and end of a string in Python?


Annonce
Ad

Answer

Avec strip() :
output = string.strip()


[source]
# ID Query