Homework
Inside sep_2_grocery_shopping_cart_dictionary.py do the following
- Use item_price dictionary to replace
- Replace the 5 inside print(f”You purchase Milk for $5″)
- Replace the 4 inside print(f”You purchase egg for $4″)
- Replace the 6 inside print(f”You purchase Orange Juice for $6″)
- Create a new dictionary item_name dictionary. This is similar to item_price dictionary but the values would be the item names (“Milk”, “Eggs”, “Orange Juice”)
- Use item_name dictionary to replace
- “Milk” inside shopping_cart.append(“Milk”)
- “Eggs” inside shopping_cart.append(“Eggs”)
- “Orange Juice” inside shopping_cart.append(“Orange Juice”)