Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove empty space from string python

string = "Welcome to Python"
new_str = "".join(string.split(" "))
print(new_str) # "WelcometoPython"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #empty #space #string #python
ADD COMMENT
Topic
Name
6+8 =