Write some characteristics of dictionaries.


Answer:

(a) A dictionary is an unordered set of key: value pairs.  

(b) A dictionary is not in sequence.   

(c) Dictionaries are indexed by keys.  

(d) Keys of a dictionary must be unique.   

(e) Dictionaries are mutable i.e. Value of a key  can be changed in place.  

Go Ad-free
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.