Kurumon marketFind a total price of item in cart with the diction cart below.
Use data below for price reference. (Don't paste in real code)
price = { "Noodle": 50, "Curry": 150, "Teok": 200, "Tuna": 500, "NintendoSwitch": 10000, "PS5": 30000, "DogeCoin": 2.3, "Vaccine": 0, "Meat": 400 }
Example Outputs
NintendoSwitch Dog Vaccine DogeCoin 10002.3
NintendoSwitch Dog Vaccine DogeCoin
Noodle Curry Teok Tuna Meat 1300
Noodle Curry Teok Tuna Meat
Code:
def total_price(items): # Do not forget to put spaces equally on each line before sending
items = input().split() total = total_price(items) print(total)