A university is offering a python course called CIS 191, and a java…

Question Answered step-by-step A university is offering a python course called CIS 191, and a java… A university is offering a python course called CIS 191, and a java course called CIS 171 to all students. Student’s registration information for these 2 courses are stored in 2 python lists in the following structure:CIS_191_IDs = [id1, id2, id3, …, ids]CIS_171_IDs = [id1, id2, id3, …, ids]All student IDs are integers. Requirement:     a. While some students might have registered for the same course more than once,     write a function called remove_duplicates(ids, course_name).     ids is a list the contains all the registered IDs for a course.     course_name is the name of the course, for example, CIS_191.    The function needs to remove the duplicated IDs within that list.     The function should update the list and returns nothing, and print a similar message to the example below.         Example:        For course CIS_191, 5 duplicated entries from student ID [101, 102, 103, 104, 105] have been removed.         b. there is function called registered_students(ids1, ids2) that requires 2 parameters.     The 2 lists containing all the registered IDs for each courses provided above. The function needs to return    a sorted list, from small to large, that contains all the student IDs that registered for at least one course.     This list should not contain any duplicated entries.         c. there is a function called one_course_students(ids1, ids2) that requires 2 parameters.     The 2 lists containing all the registered IDs for each courses provided above. The function needs to return    a sorted list, from large to small, that contains all the student IDs that registered for only one course.     This list should not contain any duplicated entries.         d. there is a function called two_course_students(ids1, ids2) that requires 2 parameters.     The 2 lists containing all the registered IDs for each courses provided above. The function needs to return    a sorted list, from small to large, that contains all the student IDs that registered for both courses.     This list should not contain any duplicated entries.         e. there is a main1 function that would first call the remove_duplicates function and remove all the duplicates in     the CIS_171_IDs, and CIS_191_IDs list.     Then, call the three functions you wrote in part b-d     and print how many student IDs there are in each of the 3 lists returned.”””def remove_duplicates(ids, course_name):    # requirement: must be done using Python dictionary. Please do not use Python set.    passdef registered_students(ids1, ids2):    # requirement: needs to be done using Python set    passdef one_course_students(ids1, ids2):    # requirement: needs to be done using Python set    passdef two_course_students(ids1, ids2):    # requirement: needs to be done using Python set    passdef main1():    CIS_191_IDs = []    CIS_171_IDs = []    # Creating the 2 lists containing students’ registration info    passmain1() Computer Science Engineering & Technology Python Programming CS 570 Share QuestionEmailCopy link Comments (0)