print("Part 3: Students and Their Courses")ๆा
for student, courses in students_with_courses.items(): 17
- ...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 cou
\# Bonus Challenge: Find students not in a specific course \( \ \frac{1}{-1} \)
def-students_not_in_course(course,-students): \( \rrbracket \)
return [student[1] for student, courses in students.items() if course not in courses]