Question

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


Annonce
Ad

Answer

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


[source]
# ID Query