Question: 1. Create a program using a while loop, two lists, and a for loop which records, saves, and prints a full grocery list. It should:
1. Create a program using a while loop, two lists, and a for loop which records, saves, and prints a full grocery list.
It should:
Start with two empty lists, for prices and items.
Prompt the user for the first item name.
Loop as long as the user does not enter Done
Add the item name to your items list.
Prompt for the price. Add the price to your price list.
Prompt for a new item, or Done
When finished, print entire items list.
Find and print the cost of the most expensive item.
****** I use python and am in the basic coding class so just using while loops ****
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
