Does anyone know why my dictionary updated automatically even though I didn't use the dict.update() method?
fruits = { "green" : ["kiwi"] }
name = "avocado"
list_tmp = fruits.get("green")
list_tmp.append(name)
print(fruits)
# output:
{'green': ['kiwi', 'avocado']}