reading list of list to a file

Steve Howell showell30 at yahoo.com
Sun Dec 9 11:17:41 EST 2007


--- caroliina <caroliina at hot.ee> wrote:

> 
> i made a list of lists but i cant write it into a
> file. how do i get the
> first string in a sublist?
> -- 

Try doing this:

print list_of_lists
print list_of_lists[0]
print list_of_lists[0][0]
print list_of_lists[0][0][0]

It might give you some insight.  If you're still stuck
after that, it would help if you posted a little bit
of your code.  Good luck!




      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping



More information about the Python-list mailing list