how C0001 as a key to dictionay 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: dictionary in python
# Dictionaries in Python
ages = {"John": 43, "Bob": 24, "Ruth": 76} # Marked by { at beginning and a } at end
# ^^^ Has sets of keys and values, like the 'John' and 43 set. These two values must be seperated by a colon
# ^^^ Sets of values seperated by commas.