Programming Assignment : Assignment 4
Program 1 : Write a Python program to create a dictionary of 5 students with their roll numbers as keys and names as values. Print the dictionary
OUTPUT :
Program 2 : Create a dictionary of fruits with their prices. Ask the user to input a fruit name and print its price. If the fruit is not available, display "Not Found"
OUTPUT :
Program 3 : Write a program to add a new key–value pair in a dictionary and update the value of an existing key
OUTPUT :
Program 4 : Write a program to merge two dictionaries into one. If a key is present in both, sum their values
OUTPUT :
Program 5 : Sort a dictionary by keys and values
OUTPUT :
Program 6 : Book management system
OUTPUT :
Program 7 : Employees dictionary operations
OUTPUT :