Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- products = {}
- command = input()
- while command != "statistics":
- # split the command and get the product and the quantity
- if product not in products:
- products[product] = 0
- products[product] += quantity
- command = input()
- # TODO: print the result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement