Example & Tutorial understanding programming in easy ways.

What is lstrip() in python ?

lstrip() remove the white space from the left portion of the string.

Example:

s="  program  Hello"

print(len(s))

print(len(s.lstrip()))

//output :

16

14

Read More →