How to Print items in a List of Strings using the format method in Python 3
问题 Provided is a list of data about a store’s 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 statement should read The store has 12 shoes, each for 29.99 USD. I initialized an index variable, i, to 0 and wrote for loop with a loop variable to go through the contents in the list. I then have