simple files continued

W Isaac Carroll icarroll at pobox.com
Sun Jun 1 00:07:48 CEST 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