Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started