DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+9 =
Submit