#----------------Dictionary---------------#
#A dictionary is a collection which is unordered, changeable and indexed. In Python
#Output - {'name': 'kamran', 'age': 24, 'Qualification': 'Btech'}
#----------------->Accessing Items<------------------
#if you want to accessing only the name from the dictionary so you can use the Bracket
#Output - kamran
#you can also use GET method for accessing the specific details from the dictionary
#Output - kamran
#-------------------CHANGE VALUE-----------------
#You can change the value of a specific item by referring to its key name:
#-----------------Loop Through a Dictionary---------------
#You can loop through a dictionary by using a for loop.When looping through a dictionary,
the return value are the keys of the dictionary, but there are methods to return the values as well.
#Print all key names in the dictionary, one by one:
#output - name
#Print all values in the dictionary, one by one:
#Output - kamran
#You can also use the values() function to return values of a dictionary:
#Output- kamran
#Loop through both keys and values, by using the items() function:
#Output - name kamran
#-------------------Check if Key Exists------------------
#Check if 'model' exist in dictionary:
#Output - yes model is one of the key in the thisdict dictionary
#-------------Dictionary Length----------------------
#Output - 3
#-----------------ADD Items---------------------
#Adding an item to the dictionary is done by using a new index key and assigning a value to it:
#Output - {'brand': 'ford', 'model': 'khan', 'year': 2016, 'color': 'red'}
#-------------------Removing Items-------------------
#There are several methods to remove items from a dictionary:
#The popitem() method removes the last inserted item
#Output - {'brand': 'ford', 'model': 'khan'}
#The del keyword removes the item with the specified key name:
#Output - {'brand': 'ford', 'year': 2016}
#-----------------------Clear method--------------------
#The clear() keyword empties the dictionary:
#-------------------Copy method------------------
#You cannot copy a dictionary simply by typing dict2 = dict1, because: dict2 will only be
#There are ways to make a copy, one way is to use the built-in Dictionary method copy().
#Make a copy of a dictionary with the copy() method:
#Another way to make a copy is to use the built-in method dict().
#Output - {'brand': 'ford', 'model': 'khan', 'year': 2016}
#---------------------Nested Dictionaries-----------------------
#A dictionary can also contain many dictionaries, this is called nested dictionaries.
#Create a dictionary that contain three dictionaries
}
#-----------------------The dict() Constructor-----------------------
#It is also possible to use the dict() constructor to make a new dictionary:
#Output - {'brand': 'ford', 'model': 'khan', 'year': 2016}
#----------------------Update method--------------------------