add array in dictionary python code example
Example 1: adding one element in dictionary python
mydict = {'score1': 41,'score2': 23}
mydict['score3'] = 45 # using dict[key] = value
print(mydict)
Example 2: python dictionary with list
dictionary = {"one": [1, 2, 3, 4, 5], "two": "something"}
print(dictionary["one"][2])
3