Important Notice:

Course Content
Dictionary in Python (Chapter-9) M3-R5
About Lesson

Important Note:-

  1. Dict is a class

  2. Dict is mutable

  3. Dict is not a sequence

  4. Dict is iterable

  5. Indexing is not applicable to dict object

  6. Dict cannot have duplicate keys (not data value)

  7. Dict element are pair of key-value and data-value

  8. Slicing operator is not applicable

Example:-

dict1 = {“name1″:”Rakesh”, “name2″:”Ramesh”, “name3″:”Kamalesh”}

print(dict1)              # {‘name1’: ‘Rakesh’, ‘name2’: ‘Ramesh’, ‘name3’: ‘Kamalesh’}

error: Content is protected !!