0 votes
in Python by
Python dictionary

1 Answer

0 votes
by
Dictionary is used to implement the key-value pair in python. The dictionary is the data type in python which can simulate the real-life data arrangement where some specific value exists for some particular key.

In other words, we can say that a dictionary is the collection of key-value pairs where the value can be any python object whereas the keys are the immutable python object, i.e., Numbers, string or tuple.

Dictionary simulates Java hash-map in python.

Related questions

0 votes
asked Aug 30, 2020 in Python by sharadyadav1986
0 votes
asked Dec 19, 2019 in Python by sharadyadav1986
...