[Tutor] Help Please
alan.gauld at btinternet.com
Mon Jan 29 02:04:05 CET 2007
"Python Freak" <newtopython at gmail.com> wrote
> This may be too elementary for most of you, but could you please
> help me
> with the following question? I would like to use comprehensive lists
> lists of lists. Where do I start?
Assuming you mean list comprehensions and lists of
lists then most web tutorials (including mine) should
include those topics
What exactly don you not understand? The more specific the question
the more specific will be the answer.
> Consider a digraph with 10 vertices, labeled 1 through 10. You are
> given the
> following adjacency list representation, where we first list the
> adjacent to vertex 1, and so on.
> 1*; *2; 2*; *3; 3*; *4; 4*; *5; 5*; *6; 6*; *7; 7*; *8; 8*; *9; 9*;
> *10; 10.
Thats pretty specific but looks like a homework.
We won't do your homework for you but we will help you with
specific bits if you get stuck. But you need to show us that
you are making a fair attempt yourself.
Author of the Learn to Program web site
More information about the Tutor