Remove Leading Whitespace From A Python String With .lstrip()
October 2023
Calling .lstrip() on a python string trims any leading whitespace (including newlines), while leaving any trailing whitespace untouched. For example:
=
=
Output:
START|hotel india juliett
|END
end of line