Question: Create a function called get_coffee_size_yourname(lst) that asks the users for the coffee size. The function must take the list below as an argument. So when

Create a function called get_coffee_size_yourname(lst) that asks the users for the coffee size. The function must take the list below as an argument. So when you call/execute the function, make sure the pass the message_list below as the argument to the get_coffee_size function message_list = [Small, Medium, Large] How much would you like to pay for a cup of coffee? Use the input function to ask this question If the answer to question 1 is less than and equal to 3, return the first index If the answer to question 1 is less than 4 and and greater than 3, return the second index Else, return the last index

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 Databases Questions!