...

/

Dictionary Varieties

Dictionary Varieties

Learn about the different varieties of dictionaries in Python.

Unique and immutable keys

Keys in a dictionary must be unique and immutable. Numbers, strings, or tuples can be used as keys. If a tuple is used as a key, it should not contain any mutable elements like a list.

Access this course and 1400+ top-rated courses and projects.