Hello,
after reading the responses to athread in 2004 [1] I am wondering why there is
no easy function in python to remove all white spaces from a string.
Like:
i am very fine
to
iamveryfine
In IDL there's just one simple function which does this: STRCOMPRESS [2].
Is there really not yet
Tim [EMAIL PROTECTED] wrote
after reading the responses to athread in 2004 [1] I am wondering
why there is
no easy function in python to remove all white spaces from a string.
i am very fine
to
iamveryfine
You can use string.replace.
'I am very fine'.replace(' ','')
'Iamveryfine'
On Mon, Oct 01, 2007, Alan Gauld wrote:
Tim [EMAIL PROTECTED] wrote
after reading the responses to athread in 2004 [1] I am wondering
why there is
no easy function in python to remove all white spaces from a string.
i am very fine
to
iamveryfine
You can use string.replace.
'I am
Tim wrote:
Hello,
after reading the responses to athread in 2004 [1] I am wondering why there is
no easy function in python to remove all white spaces from a string.
Like:
i am very fine
to
iamveryfine
In IDL there's just one simple function which does this: STRCOMPRESS [2].
Is