Python lstrip

The Python lstrip method is useful for removing the specified characters from the left-hand side of a string. By default, it deletes white spaces and returns a new string. The syntax of the Python lstrip function is String_Value.lstrip(Chars) Python lstrip method Example The following set of examples helps to know the Python lstrip Function. Str1 … Read more