Question: Need to come up with a coding in python. The blue highlighted textbox is a test case to make sure the code runs successfully. Class
Need to come up with a coding in python.
The blue highlighted textbox is a test case to make sure the code runs successfully.

Class Pilluel Function Name: class_finder Parameters: courseDict ( dict), friendsList ( list) Returns: goodClasses ( list ) Description: Write a function that takes in a list of your friends and a dictionary that maps the names of different courses as strings to lists of the course rosters. The function should return a list of the courses that have at least two of your friends in them. The format of course Dict will be as follows: course1: (personi, person2, ...), course2: (personi, person2, ...), Hint: The python in operator might be useful! >>> courseDict = {"CS1301": ["Damian", "Peter", "Jasmine C.", "Jakob", "Cathy"] , "CS2110" : ["Arushi", "Brae", "Arvin", "Cathy", "Jasmine Y.", "Caitlin"), "CS 1332": ["Damien", "Jakob", "Juliette", "Jasmine Y." "Jasmine C.", "Arvin"]} >>> friendsList = ["Damian", "Peter", "Brae", "Arushi"] >>> print(class_finder(courseDict, friendsList)) ['CS1301', 'CS2110'1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
