Answered step by step
Verified Expert Solution
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 %%%
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
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