Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

%%% Python - Jupitor Notebook %%% Q1 (2 pts) Shopping list Write a function called input_shopping list0 that prompts a user for items on their

%%% Python - Jupitor Notebook %%%

image text in transcribed

Q1 (2 pts) Shopping list Write a function called input_shopping list0 that prompts a user for items on their shopping list and keeps prompting the user until they enter "Done" (not case sensitive). then returns the items in the list. Your code will then call input_shopping_list0 and print the total contents of the shopping list and the total number Pseudocode for input shopping list0 INITIALIZE empty shopping list PROMPT the user for an item WHILE item is not "done" ADD item to shopping list RETURN shopping_list (This is just the pseudocode for the function. Your code also needs to call this function.) Output should look something like this: Apple Bread Milk Steak Potatoes Total items on shopping list: 5

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

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions

Question

What are three disadvantages of a civil service system?

Answered: 1 week ago

Question

4. Develop a self-directed learning module.

Answered: 1 week ago

Question

2. Provide recommendations for effective on-the-job training.

Answered: 1 week ago