string.strip()

string.strip()

string.strip() method

.strip([chars])
>>> '   spacious   '.strip()
'spacious'

Return a copy of the string with the leading and trailing characters removed.

Related concepts

string.strip()

string.strip() — Structure map

Clickable & Draggable!

string.strip() — Related pages: