Question: Create a function called get _ coffee _ size _ yourname ( lst ) that asks the user s for the coffee size. The function
Create a function called getcoffeesizeyournamelst that asks the users for the coffee size. The function must take the list below as an argument. So when you callexecute the function, make sure the pass the messagelist below as the argument to the getcoffeesize function
messagelist SmallMediumLarge
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 is less than and equal to return the first index
If the answer to question is less than and and greater than 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
