In this tutorial you will learn about the Python Dictionary and its application with practical example.
Python Dictionary
In Python, Dictionary is an unordered collection of key-value pairs. Dictionary is similar to associative arrays or hashes consist of key-value pairs. Dictionary is defined by using curly braces ({ }) and values can be assigned and accessed using square braces ([]).
Example:-
1 |
{'Day1': 'Mon', 'Day2': 'Tue', 'Day3': 'Wed', 'Day4': 'Thu'} |