python dictionary store more than one value per key code example Example: dictionary multiple values per key key = "somekey" a.setdefault(key, []) a[key].append(1)