List Maker

Step 3: Add a function to your code with two parameters, one for the item quantity, and one for the item name. Have this function check the quantity and print one of the following:
  • Quantity is 0: print nothing
  • Quantity is 1: print the quantity and item name
  • Quantity is more than 1: print the quantity and item name pluralized
Last step Next step