pyhton how to append more values to key of dictionary code example Example: dictionary multiple values per key key = "somekey" a.setdefault(key, []) a[key].append(1)