0
How to remove spaces in Python?
4 Respostas
+ 6
Lots of ways here https://www.sololearn.com/learn/4455/?ref=app
+ 3
If you just want to remove every space from a string, this is probably simplest:
string = string.replace(' ', '')
If it's a bit more complicated than that - see what 1704086_ibnul said. ;-)