Remove Leading And Trailing Whitespace From A Python String With .strip()
October 2023
=
=
Output:
START|alfa bravo charlie|END
Notes
-
Calling
.strip()removes both leading and trailing whitespace (including newline characters) from a string -
This is called
trimin some other languages
end of line