Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Experts Guide To Database 2

Authors: Bruce L. Larson

1st Edition

0070232679, 978-0070232679

Students also viewed these Databases questions

Question

Think back to Chapter

Answered: 1 week ago

Question

What is the preferred personality?

Answered: 1 week ago

Question

What is the relationship between humans?

Answered: 1 week ago