☑Kizspy.me
Call the function load_course_data (course_data.txt)
Store the returned list in a variable courses and print its content.
Question 3: Find the Course with Highest Credit Hours (2 Marks)
Write a function find_highest_credit_course (courses):
。 Identifies the course with the highest number of credit hours.
Prints the course's details.
o

Call the function using the course list.
Question 4: Group and Print Courses by Credit Hours (3 Marks)
Write a function group_courses_by_credit_hours (courses):
。 Groups the Course Registration objects by their_credit_hours.
о Returns a dictionary where:
Zoom
+ 100%
Keys: Credit hour values (e.g., 2, 3, 4).
Values: A list of CourseRegistration objects that have that specific
number of credit hours.
Close