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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -