# Creates list of dicts using loop students = ["Hermione", "Harry", "Ron"] gryffindors = [] for student in students: gryffindors.append({"name": student, "house": "Gryffindor"}) print(gryffindors)