DICTIONARY


Dictionary in Python is an unordered collection of data, used to store data values along with the keys. Dictionary holds the key : value pair. We can also refer to a dictionary as a mapping between a set of keys and a set of values. Each key-value pair in a Dictionary is separated by a colon (:). E.g. dict={ "a": "alpha", "o": "omega", "g": "gamma" }

CHARACTERISTICS OF PYTHON DICTIONARY:

1.The combination of Key and Value is called Key-Value Pair.
2. Keys and their values are separated by colon(:)
3. Different Key-Value pairs are separated by comma(,).
4. Keys are unique for each Value.
5. Keys of dictionary must be of immutable type like string, number etc.



Built-in functions in dictionary:-




learn | code |crack

Learn With Me

Terms | Privacy | Security | Do not share your personal information