whitespace

Peter Hansen peter at engcorp.com
Sat Sep 20 02:07:32 CEST 2003


RR wrote:
> 
> Is there an easy way in python to remove whitespace from a string?

>>> '  string with whitespace   '.strip()
'string with whitespace'

-Peter




More information about the Python-list mailing list