removing spaces between 2 names

Steven Howe howe.steven at gmail.com
Tue May 15 02:14:23 EDT 2007


saif.shakeel at gmail.com wrote:
> Hi,
>      Suppose i have a string stored in variable,how do i remove the
> space between them,like if i have the name:
> "USDT request" in a variable.i need "USDTrequest",without any space .
>                 Thanks
>
>   
from string import replace
st = 'abcd acdfg    xtit'
st.replace(' ','')
'abcdacdfgxtit'

sph

-- 
HEX: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0




More information about the Python-list mailing list