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"
 
PREVIOUS NEXT
Tagged: #remove #empty #space #string #python
ADD COMMENT
Topic
Name
5+3 =