[Tutor] Lists in lists
Morten Juhl Johansen
mjj at pythonin.dk
Sat Sep 16 15:29:42 CEST 2006
# Newbie warning
I am making a timeline program. It is fairly simple.
I base it on appending lists to a list.
Ex.
[[year1, "headline1", "event text1"], [year2, "headline2", "event text2"]]
This seemed like a brilliant idea when I did it. It is easy to sort.
Now, if I want to OUTPUT it, how do I indicate that I want to extract
first entry in a list in a list? How do I print the separate entries?
Yours,
Morten
__
http://mjj.slacking.dk
More information about the Tutor
mailing list