how to create dictionary python code example

Example 1: printing dictionary in python

mydict = {'score1': 41,'score2': 23}
mydict['score3'] = 45

# key value pairs
for i in mydict:
    print(i,mydict[i])

Example 2: Python New Disctionary

new_dict = dict()

#OR

new_dict = {}

Example 3: python dictionary

#title			:Dictionary Example
#author         :Josh Cogburn
#date           :20191127
#github         :https://github.com/josh-cogburn
#====================================================

thisdict = {
	"brand": "Ford",
 	"model": "Mustang",
 	"year": 1964
}

#Assigning a value
thisdict["year"] = 2018