Advertisement
Guest User

Untitled

a guest
Apr 1st, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. products = {}
  2. command = input()
  3. while command != "statistics":
  4. # split the command and get the product and the quantity
  5. if product not in products:
  6. products[product] = 0
  7. products[product] += quantity
  8. command = input()
  9. # TODO: print the result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement