For the record


I mean I submitted the code and got the congratulations go on to the next lesson but all the input is just splattered on the output screen with no order. I tried playing with it but it got to the point where I was basically having a long code telling it it what to do word for word. then whats the point of a FOR LOOP then, right?
Is there a way I could put them in order?

students = [ lloyd, alice, tyler]

for key in lloyd:
        print lloyd[key]
        print alice[key]
        print tyler[key]


Dictionaries are unodered. You can use sort, but you can't use the original order


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.