Answers for ".lstrip()"

0

.lstrip()

Remove spaces to the left of the string:

txt = "     banana     "

x = txt.lstrip()

print("of all fruits", x, "is my favorite")
Posted by: Guest on September-08-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language