whitespace

Hung Jung Lu hungjunglu at yahoo.com
Sat Sep 20 19:55:06 CEST 2003


"RR" <rr84 at cornell.edu> wrote in message news:<pan.2003.09.19.23.35.54.334022 at cornell.edu>...
> Is there an easy way in python to remove whitespace from a string?

' hello world '.replace(' ', '')

'helloworld'

Hung Jung




More information about the Python-list mailing list