60+ Dictionary Python Best MCQ Class 11

Dictionary Python MCQ Q1. Keys of dictionary must be _______________ a. antique b. unique c. mutable d. integers Q2. Dictionaries in python are _________________. a. Mutable data type b. Non-Mutable data type c. Mapping data type d. Both a and c Q3. Which of the following is used to delete an element from Dictionary? a. … Read more

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

CBSE Class 11 Python Dictionary Comprehensive Notes with Practice Questions

What is Python Dictionary? A python dictionary is a collection of elements where each element is a combination of Key-Value pair. Each value/values is associated with a unique key. All the Key-Value pairs are enclosed in Curly braces. In other words we can say that ” Dictionaries are mutable, unordered collection of elements in the … Read more

CBSE Class 11 Python Dictionary Methods Comprehensive Notes with Practice Questions

Python Dictionary Methods: There are many methods of dictionary in python. Let’s do some of the important function with example. len( ) : This function returns the length of Dictionary means, it returns the total number of Key-Value pairs present in the dictionary. for example: A = {1 : “One”, 2 : “Two”, 3 : … Read more

error: Content is protected !!