Python

Dictionary in Python

List, tupple ,set data types are use to represent individual objects as a single entity. To store the group of objects as a key-value pairs use dictionary. Declare the dictionary data within the curly braces, each key separate with value by using : (colon) & each element is separate with comma. A dictionary is a data type similar to arrays, but works with keys & values instead of indexes. The keys must be unique keys but values can be duplicate. The values in the dictionary can be of any type while the keys must be immutable like numbers, tuples or strings. Dictionary keys are case sensitive- Same key name but with the different case are treat as different keys in Python dictionaries.