Question: Create a file named Lab 1 2 P 1 b . py . This file will be the main module that holds the main program.
Create a file named LabPbpy This file will be the main module that holds the main program.
Create three objects by asking the user for the item's information. You will need to ask whether the user wants to create a book, game, or DVD item.
Use the Sample Output as a guide for how you should be asking the user what they want to add to the inventory. You must use as your input for this part of you will lose points.
The user may ask for these objects in any order and may not always ask for one of each.
Do not ask the user if they want to add more items. Consider using a list to hold the objects and using a for loop for asking for EXACTLY times.
After creating these objects, print the objects directly.
Sample output for LabPbpy:
What item type Book, Game, DVD
Enter the item name: Of Mice and Men
Enter the item count:
Enter the unit cost:
What is the ISBN?
ISBN must be a digit number.
What is the ISBN?
What item type Book, Game, DVD
Enter the item name: Monopoly
Enter the item count:
Enter the unit cost:
What is the UPC?
UPC must be a digit number.
What is the UPC?
What item type Book, Game, DVD
Enter the item name: Bambi
Enter the item count:
Enter the unit cost:
What is the UPC?
What is the genre of the DVD Animation
Of Mice and Men
Count: Cost:
Category: Book
ISBN:
Monopoly
Count: Cost:
Category: Game
UPC:
Bambi
Count: Cost:
Category: Game
UPC:
Genre: Animation
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
