Python Forum

Full Version: How to remove space between strings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,
how can we remove space if there is a space between values in a string.
for example
'abcdef @gmail.com'
a = 'abcdef @gmail.com'
dm = a.replace(" ","")
print(dm)
.join method can do the trick.

And please - no more capslock. My eyes and ears are hurt.