For the Record - any way to achieve without so many print calls?


It works, but is there any way to shorten?

students = [lloyd,alice,tyler]
for student in students:
    print student["name"]
    print student["homework"]
    print student["quizzes"]
    print student["tests"]


print student["name"],"\n" ,student["homework"],"\n" , \
    student["quizzes"],"\n" , student["tests"]


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