Answers for "how to remove extra spaces in python strinh"

2

remove extra spaces and empty lines from string python

"n".join([s for s in code.split("n") if s])
Posted by: Guest on March-13-2021
0

python remove spaces from string

>>> " ".join(s.split())
'Hello World From Pankaj Hi There'
Posted by: Guest on December-14-2020

Code answers related to "how to remove extra spaces in python strinh"

Python Answers by Framework

Browse Popular Code Answers by Language