Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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'1Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started