List and Dictionary Based Programming Questions
List and Dictionary Based Programming Questions
8. WAP that repeatedly asks the user to enter product names and prices. Store all of them in a
dictionary whose keys are product names and values are prices. And also write a code to search an
item from the dictionary.
9. WAP to create a dictionary named year whose keys are month names and values are their
corresponding number of days.
14. Write a program to input your names and marks and store them in dictionary as the key-value
pair. Perform the following operations on the dictionary:
(b) Add a new key-value pair in this dictionary and display the modified dictionary.