# Uses dictionary comprehension instead students = ["Hermione", "Harry", "Ron"] gryffindors = {student: "Gryffindor" for student in students} print(gryffindors)