Re: removing spaces between 2 names

2007-05-15 Thread Roberto Bonvallet
[EMAIL PROTECTED] wrote: > s = "jk hij ght" > print "".join(s.split(" ")) "".join(s.split()) is enough. -- Roberto Bonvallet -- http://mail.python.org/mailman/listinfo/python-list

Re: removing spaces between 2 names

2007-05-15 Thread Steven D'Aprano
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 . >>

Re: removing spaces between 2 names

2007-05-15 Thread Ant
On May 15, 7:41 am, 7stud <[EMAIL PROTECTED]> wrote: > On May 15, 12:14 am, Steven Howe <[EMAIL PROTECTED]> wrote: ... > > from string import replace > > st = 'abcd acdfgxtit' > > st.replace(' ','') > > 'abcdacdfgxtit' ... > The methods in the string module are deprecated. Skip the import and

Re: removing spaces between 2 names

2007-05-14 Thread half . italian
On May 14, 11:00 pm, [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 s = "jk hij ght" print "".join(s.

Re: removing spaces between 2 names

2007-05-14 Thread 7stud
On May 15, 12:14 am, Steven Howe <[EMAIL PROTECTED]> 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 . > >

Re: removing spaces between 2 names

2007-05-14 Thread Steven Howe
[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 acdfgx

removing spaces between 2 names

2007-05-14 Thread saif . shakeel
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 -- http://mail.python.org/mailman/listinfo/python-list