SyntaxFix
Write A Post
Hire A Developer
Questions
The function strip will remove whitespace from the beginning and end of a string.
strip
my_str = " text " my_str = my_str.strip()
will set my_str to "text".
my_str
"text"