Python String – lstrip() method

It is a method string in python that removes all the leading characters from the left side of the string. It uses space as a default leading value. Leading characters can be one or many. Syntax: string.lstrip(leading_characters) Example 1: s = ” CodeWindow ” x = s.lstrip() print(x) Output: CodeWindow Explanation: Here the leading character […]

Python String – lstrip() method Read More »