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


#1


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"]


#2

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

#3

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