Question: in python please Shopping cart a. Write a function, receipt(), that asks the user to enter a grocery item, price, and quantity, and then displays

in python please
Shopping cart a. Write a function, receipt(), that asks the user to enter a grocery item, price, and quantity, and then displays an itemized receipt as shown below: Enter item: hot dog Enter price: 2.00 Enter quantity: 5 RECEIPT 5 hot dog @ $2.00 = $10.00 TOTAL: $10.00 b. Extend the function to allow the user to enter the number of groceries purchased at the beginning, and then output an itemized receipt with each item
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
