On Mon, 14 May 2007 23:14:23 -0700, Steven Howe wrote: > [EMAIL PROTECTED] 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'
The line "from string import replace" is redundant. -- Steven. -- http://mail.python.org/mailman/listinfo/python-list