print("Part 3: Students and Their Courses")१|
for-student, courses in students_with_courses.items():ๆ]
- print(f"Student: \{student[1]\} (\{student[0]\})")ๆ]
-..print(f"Courses: \{', '.join(courses)\}")॥
...print()ๆ
\# Question 6: Why is a dictionary used here to combine student details with their cours ๆ
\#Bonus-Challenge: Find students not in a specific course ๆI
def students_not_in_course(course, students): \|
... return [student[1] for student, courses in students.items() if course not in courses] ]
en eromen