Explain dictionary and how it is
created?
Ans.-
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 specified value exist for some particular key.
Creating a dictionary
The dictionary can be created by using multiple key value
pair enclosed with the small brackets () and separated by the colon(:) . The
collection of the key value pair are enclosed within the curly braces {}.
Syntax:-
Dict = {“name”:”abc”,”age”:22}