How do I trim whitespace from a string?
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Melt
--
Chapters
00:00 Question
00:20 Accepted answer (Score 1970)
01:14 Answer 2 (Score 282)
02:16 Answer 3 (Score 134)
02:31 Answer 4 (Score 63)
02:45 Thank you
--
Full question
https://stackoverflow.com/questions/7618...
Accepted answer links:
[.strip()]: https://docs.python.org/library/stdtypes...
[str.strip()]: https://docs.python.org/library/stdtypes...
Answer 2 links:
[my_string.lstrip()]: https://docs.python.org/library/stdtypes...
[my_string.rstrip()]: https://docs.python.org/library/stdtypes...
[docs]: https://docs.python.org/library/stdtypes...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #string #trim
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Melt
--
Chapters
00:00 Question
00:20 Accepted answer (Score 1970)
01:14 Answer 2 (Score 282)
02:16 Answer 3 (Score 134)
02:31 Answer 4 (Score 63)
02:45 Thank you
--
Full question
https://stackoverflow.com/questions/7618...
Accepted answer links:
[.strip()]: https://docs.python.org/library/stdtypes...
[str.strip()]: https://docs.python.org/library/stdtypes...
Answer 2 links:
[my_string.lstrip()]: https://docs.python.org/library/stdtypes...
[my_string.rstrip()]: https://docs.python.org/library/stdtypes...
[docs]: https://docs.python.org/library/stdtypes...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #string #trim
#avk47