Python - String Method - lstrip() Tutorial
It will remove any character from starting( left end) part of the string. by default, it will remove space. To remove another character we need to define it in a parameter of lstrip() method.
String.lstrip(character)
#character - (Optional) A set of multiple character that need to
be removed from beginning of a String. by default it will take space
Example-
str1 = " Hello Welcome to python Tutorial "
print(str1.lstrip())
str2 = ",,,].rrHello Pythonggg,,,;;;"
print(str2.lstrip(",.rg;]"))
Output-
Hello Welcome to python Tutorial
Hello Pythonggg,,,;;;