[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
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 .
>>
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
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.
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 .
> >
[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
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