from collections import defaultdictvalues = [11,22,33,44,55,67,77,88,99,90,]my_dict = defaultdict(list)for value in values: if value>66: my_dict['k1'].append(value) else: my_dict['k2'].append(value)print(my_dict)