python - how to concatenate two words from one string without spaces -
python - how to concatenate two words from one string without spaces -
i have string name = 'one two'
. want create 'onetwo'
it.
is there cool python shortcut .join()
without space?
you can name.replace(' ','')
or ''.join(name.split())
python
Comments
Post a Comment