Answers for "python trim leading whitespace"

2

python trim whitespace from end of string

>>> "    xyz     ".rstrip()
'    xyz'
Posted by: Guest on May-07-2020
0

python trim leading whitespace

>>> '     hello world!'.lstrip()
'hello world!'
Posted by: Guest on May-31-2021

Python Answers by Framework

Browse Popular Code Answers by Language