how to add list toa key in dict code example
Example: how to add list toa key in dict
a_dict = {}
if "a" in a_dict:
a_dict["a"].append("kite")
print(a_dict)
a_dict = {}
if "a" in a_dict:
a_dict["a"].append("kite")
print(a_dict)