3 ms·
I like comprehensions, but think this style has some advantages (and some disadvantages): dic = dic.where((k, v) => k in other_dic and v == "bar").todict()
by 1wd 7y ago
I like comprehensions, but think this style has some advantages (and some disadvantages):
dic = dic.where((k, v) => k in other_dic and v == "bar").todict()