for sturs
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
Bonus Challenge: Find students not in a specific course \( \boldsymbol{\eta} \) ef students_not_in_course(course, students): \( ๆ \)
return [student[1] for student, courses in students.items() if course not in course
Question 7: Rewrite the function above to include an additional check for empty d print an error message if no students are found. \( 9 \frac{1}{9} \)
t_in_math101 = students_not_in_course("Math101", students_with_courses)ๆl nt("Bonus Challenge: Students-Not Enrolled in Math101") १ nt(not_in_math101)ๆ