"Python Freak" <[EMAIL PROTECTED]> 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 > and > 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. > Question: > > Consider a digraph with 10 vertices, labeled 1 through 10. You are > given the > following adjacency list representation, where we first list the > vertices > 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. -- Alan Gauld Author of the Learn to Program web site http://www.freenetpages.co.uk/hp/alan.gauld _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor