WeCodeAcademy
❮ str.title()str.split() ❯

str.strip()

Removes whitespace from both ends.

Group: String

Syntax

s.strip()

Example

Examplepython
Open in editor »

← All of Python Reference