strip
lstrip
rstrip
Removes leading whitespace (or specified characters).
str.lstrip(chars?)
Enter values below to update the example in real time.
print
text = " hello world " print(text.lstrip()) # "hello world "