menuePrice = {
"margherita":5.00,#the price is 5.00
"pepperoni": 7.50,
"ham and pinaple": 1,
"vegan pizza": 1,
"americano": 1,
"meat pizza": 1,
"gluten free pizza": 1,
"dary free pizza": 1,
"pizza free pizza": 1,
"p": 1,
}
And this is the list
pizzaOrder = ["margherita", "pepperoni"]#this is what the customer has ordered
Hi, I would like to get the values of whatever is in pizzaOrder from menuePrice, add the values together and print them out as a final price. Eg: Total: £12.5. I havent tried anyhting as i have no clue how to go about doing this and i am struggling to formulate my question into words for google. This is for a pizza order chat bot if that helps. Sorry if the answer is easy, i/m quite new to dictionarys in python/