Question: message _ list = [ ' Small ' , 'Medium', 'Large' ] questions = [ ' How much would you like to pay for a

message_list =['Small', 'Medium', 'Large']
questions =['How much would you like to pay for a cup of coffee? Use the input function to ask this question']
Create a function called get_coffee_size(lst, questions) 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
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 Finance Questions!