reading list of list to a file

Ismail Dönmez ismail at pardus.org.tr
Sun Dec 9 11:19:32 EST 2007


Sunday 09 December 2007 18:11:00 tarihinde caroliina şunları yazmıştı:
> i made a list of lists but i cant write it into a file. how do i get the
> first string in a sublist?

An easy example:

>>> a=[[1,2,3],[4,5,6]]
>>> a[0][0]
    1
>>> a[1][0]
    4
>>>

-- 
Never learn by your mistakes, if you do you may never dare to try again.



More information about the Python-list mailing list