def check_buy(**kwargs):
print(kwargs)
check_buy(apple=1, orange=2, pineapple=3)
def check_buy(**kwargs):
for k, v in kwargs.items():
fruits[k] = fruits.get(k, 0) + v
fruits = {}
check_buy(apple=1, orange=2, pineapple=3)
check_buy(apple=10, orange=7, pineapple=30)
check_buy(peach=21)
print(fruits)