Question: write the following code in Python 3. Also, please write code and not psedo-code. 2. Please also share your code and show all outputs. Provided
write the following code in Python 3. Also, please write code and not psedo-code.
2. Please also share your code and show all outputs.
Provided is a list of data about a stores inventory where each item in the list represents the name of an item, how much is in stock, and how much it costs. Print out each item in the list with the same formatting, using the .format method (not string concatenation). For example, the first print statment should read The store has 12 shoes, each for 29.99 USD.
inventory = ["shoes, 12, 29.99", "shirts, 20, 9.99", "sweatpants, 25, 15.00", "scarves, 13, 7.75"]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
