Exercise: Add key-value pair to dictionary
Due to customer demands, fries have been added to the menu with a price of 2.50. Please update the dictionary accordingly.
menu = {'burger': 5.99, 'pizza': 8.99, 'salad': 6.49}
# add key-value pair here...
print(menu)
# expected: {'burger': 5.99, 'pizza': 8.99, 'salad': 6.49, 'fries': 2.5}
Python
Setting up Python environment...
Output