simple files continued

W Isaac Carroll icarroll at pobox.com
Sat May 31 18:07:48 EDT 2003


Darren Teo wrote:
> how do i remove the \n ?? and output to be
>  
> [['why', '2', 'crap', 'hehe'], ['say', '4', 'test', '6'], ['what', '7', 
> '0', 'damn']]

Try strip()

TTFN






More information about the Python-list mailing list