It will remove any character from the ending( right 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.
#character - (Optional) A set of multiple character that need to
be removed from ending of a String.by default it will take space
str1 = " Hello Welcome to python Tutorial "
str2 = ",,,].rrHello Pythonggg,,,;;;"
Hello Welcome to python Tutorial
Best learning portal that provides you great learning experience of various technologies with modern compilation tools and technique
Don't hesitate to give us a call or send us a contact form message