Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

=+ 46-2 Discuss how an infant's brain begins processing memories.

Answered: 1 week ago

Question

Compare levels of resolution in conflict outcomes?

Answered: 1 week ago

Question

Strategies for Managing Conflict Conflict Outcomes?

Answered: 1 week ago