| Define dictionary in Python?
Python dictionary is one of the supported data type in Python programming. Python is an collection of elements that are unordered. And all the elements in dictionaries are stored in key-value pairs. And dictionaries in Python are indexed by keys.
To understand this we will take a example of dictionary named as "dict". And this below dictionary will have two keys, BookName and language with there respective values "Let us C" and "C".
Syntax:-
dict = {"BookName": "Let us C","Language":"C", }
And output of above code is :-
BookName: Let us C, Language:C | | |