[Practice] Student Course Enrollment


Submit solution

Points: 10
Time limit: 0.5s
Memory limit: 20M

Author:
Problem type
Allowed languages
Python

Student Course Enrollment

You are tasked with creating a program to manage student course enrollments. The program should allow students to enroll in courses, drop courses, and perform various operations on their enrollments.

  • Create a list of students, where each student is represented as a tuple (student_id, student_name).
  • Create a list of courses, where each course is represented as a tuple (course_id, course_name).
  • Create a set of tuples to represent student-course enrollments (student_id, course_id). Initially, no students are enrolled in any courses.
  • Implement the following operations:
    • Allow a student to enroll in a course.
    • Allow a student to drop a course.
    • Display a list of all courses.
    • Display a list of all students.
    • Display a list of courses a particular student is enrolled in.
    • Display a list of students enrolled in a particular course. You can create functions or menus to interact with this system, allowing the user to choose different operations.

Comments

There are no comments at the moment.