...

/

Solution: Class Grades

Solution: Class Grades

We'll cover the following...

This program stores a list of students with their scores and then prints each student’s name and score.

students = [
{"name": "Sam", "score": 87},
{"name": "Luna", "score": 92},
{"name": "Kai", "score": 78}
]
for student in students:
print(student['name'], "scored", student['score'])
    ...