Dictionary in python
*Dictionary in python* Dictionary A dictionary is a collection which is unordered, changeable and indexed. In Python dictionaries are written with curly brackets, and they have keys and values. Example Create and print a dictionary: thisdict = { "brand" : "Ford" , "model" : "Mustang" , "year" : 1964 } print (thisdic) OUTPUT:- { "brand" : "Ford" , "model" : "Mustang" , "year" : 1964 } Accessing Items You can access the items of a dictionary by referring to its key name, inside square brackets: Example Get the value of the "model" key: x = thisdict[ "model" ] print(x) OUTPUT:- "Mustang" OR There is also a method called get() that will give you the same result: Example Get the value of the "model" key: x = thisdict.get( "model" ) print(x) OUTPUT:- "Mustang" Ch...