# Demonstrates objects from cs50 import get_string from student import Student # Space for students students = [] # Prompt for students' names and dorms for i in range(3): name = get_string("name: ") dorm = get_string("dorm: ") students.append(Student(name, dorm)) # Print students' names and dorms for student in students: print(f"{student.name} is in {student.dorm}.")