Question: Function Name: snackMaker ( ) Parameters: orders ( list ) , snacks ( list ) , drinks ( list ) Returns: moviegoers ( list )

Function Name: snackMaker()
Parameters: orders ( list ), snacks ( list ), drinks ( list )
Returns: moviegoers ( list )
Description: You work at the movie theater snack station, and with everyone coming for the
Interstellar re-release, you've run out of many items!
Write a function that takes three lists: a orders list containing lists in the format [name, snack,
drink], a list of snacks you have, and a list of drinks you have. Return the people whose orders
you have the snacks and drinks to make as a list, sorted alphabetically.["Danny", "Popcorn", "Fanta"]]drinks =["Cola Icee", "Sprite", "Lemonade"]
snackMaker(orders, snacks, drinks)
['Sila']snacks =["Junior Mints", "Skittles", "Hot Dog", "Popcorn"]
> drinks =["Root Beer", "Icee", "Coke", "Fanta", "Water"]['Kirito', 'Saleh']
(P.S. These are actually your TAs favorite movie snacks!)
Function Name: snackMaker ( ) Parameters: orders

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!