Write a Python program to read the item name and quantity of each item included

Sep 1, 2021 | computer science

Write a Python program to read the item name and quantity of each item included in a shopping list using a loop. 

Assume a shopping list will include only following three items: 
Item name
Item unit price
Pencil
$1
Eraser
$2
Box
$3
The program should ask the user to enter the item name and quantity of each item. Assume user enters valid input. You are NOT required to do validation checks of the data input.
Your program must find and display the itemised cost and the total cost of the items in the shopping list using a loop.
Sample program run (user input is given in italics):
Enter item name: pencil
Enter item quantity: 2
Enter item name: box
Enter item quantity: 1
Enter item name: eraser
Enter item quantity: 2
Sample output:
*************************************************************************************
Item No Item Name Unit Price Quantity Item Price
*************************************************************************************
1 pencil 1 2 2
2 box 3 1 3
3 eraser 2 2 4

    Don't use plagiarized sources. Get Your Custom Essay on
    Write a Python program to read the item name and quantity of each item included
    Just from $12/Page
    Order Essay
      

    Why dont you let a reliable essay writing service handle your assignments ?