I have a dictionary like this
dict_a = {}
dict_a["key1"] = [["1","2"]]
i want to concatenate the value [["1","2"]]
inside this dictionary with a string 3
. So I did something like this:
new_list = list(dict_a["key1"])
dict_a["key1"] = new_list.append("3")
when i print the dictionary with the key key1
it gives me a None
instead of [["1","2"], "3"]
print dict_a["key1"]
Cane someone explain why I got a "None"?