xxxxxxxxxx
fl = list(filter(lambda x: x['first'] == 'Christian', dictlist))
# you can't use `.property` because this is a dictionary, not a object
fl[0]['last']
# returns Doppler
xxxxxxxxxx
d = dict(a=1, b=2, c=3, d=4, e=5)
print(d)
d1 = {x: d[x] for x in d.keys() if x not in ['a', 'b']}
print(d1)
xxxxxxxxxx
dict_list = [{'a': 1, 'b': 2}, {'b': 1, 'c': 2}, {'c': 1, 'd': 2}]
filter_value = 2
[{k:v for k,v in d.items() if v == filter_value} for d in dict_list]