+ 1
How do I exclude spaces?
I'm trying to exclude spaces in the user's input. How would I go about doing that?
1 ответ
+ 3
You can use .strip(' ') to remove whitespace from the left and right side of the user input. Follow the link below to an excellent tutorial.
https://www.dotnetperls.com/strip-JUMP_LINK__&&__python__&&__JUMP_LINK