A dictionary is a mixed collection of elements. The dictionary type stores a key along with its element. The keys in a Python dictionary is separated by a colon ( : ) while the commas work as a separator for the elements. The key value pairs are enclosed with curly braces { }. Syntax of defining a dictionary:
Dictionary_Name =
{ Key_l: Value_1,
Key_2: Value_2,
…………..
Key_n: Value_n
}