Python Tagli Spazio
pythonCopy>>> demo = " Demo Example "
>>> demo.replace(" ", "")
'DemoExample'
Shiny Spider
pythonCopy>>> demo = " Demo Example "
>>> demo.replace(" ", "")
'DemoExample'
pythonCopy>>> demo = " Demo Example "
>>> " ".join(demo.split())
'Demo Example'