Programs on Dictionary in Python Class 11 | Important Questions-Solved Exercise
Programs on Dictionary in Python Class 11 Q1. Write a Python program to arrange the values in a dictionary in ascending order. For example Original Dictionary = {1 : 25, 2 : 21, 3 : 23} Expected Output = [21, 25, 32] Solution: d={1:21,2:32,3:25} print(sorted(d.values())) print(d) Programs on Dictionary in Python Class 11 Q2. Write … Read more