python create new dict code example
Example 1: python make a dictionary
#title : Dictionary Example
#author : Joyiscold
#date : 2020-02-01
#====================================================
thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}
#Assigning a value
thisdict["year"] = 2018
Example 2: dictionary in python
thisdictionary = {'key':'value','key1':'value1'}
print(thisdictionary['key'])
Example 3: how to create a new dictionary in python
myDict = {'first item' : 'definition'}
#CREATING A BLANK DICTIONARY
myDict = {}