Cara Menetapkan Nilai ke Kamus Kunci Dalam Daftar Python
a_dictionary["a"] = [1, 2, 3]
Colorful Crab
a_dictionary["a"] = [1, 2, 3]
a_dictionary["c"] = [7, 8, 9]
{'a': [1, 2, 3], 'b': [4, 5, 6], 'c': [7, 8, 9]}
a_dictionary = {}
a_dictionary["b"] = [4, 5, 6]
print(a_dictionary)