python togli spazio

Solutions on MaxInterview for python togli spazio by the best coders in the world

showing results for - "python togli spazio"
Laura
18 Jan 2019
1 pythonCopy>>> demo = " Demo  Example  "
2>>> " ".join(demo.split())
3'Demo Example'
Léo
23 Jan 2021
1 pythonCopy>>> demo = " Demo  Example  "
2>>> demo.replace(" ", "")
3'DemoExample'
similar questions
queries leading to this page
python togli spazio