Exercise: Update key-value pair in dictionary
The price of the pizza has been updated. Assign the new price to the corresponding key-value pair in the dictionary.
menu = {'burger': 5.99, 'pizza': 8.99, 'salad': 6.49}
new_price = 9.5
# update dictionary here...
print(menu['pizza'] == new_price)
# expected output: True
Python
Setting up Python environment...
Output