About Lesson
Important Note:-
-
Dict is a class
-
Dict is mutable
-
Dict is not a sequence
-
Dict is iterable
-
Indexing is not applicable to dict object
-
Dict cannot have duplicate keys (not data value)
-
Dict element are pair of key-value and data-value
-
Slicing operator is not applicable
Example:-
dict1 = {“name1″:”Rakesh”, “name2″:”Ramesh”, “name3″:”Kamalesh”}
print(dict1) # {‘name1’: ‘Rakesh’, ‘name2’: ‘Ramesh’, ‘name3’: ‘Kamalesh’}