Jun-03-2020, 04:42 PM
>>> dict1 = {'red':3,'blue':4,'yellow':6} >>> dict2 = {'red': 'is a color', 'blue': 'is another color'} >>> [v for k, v in dict2.items() if k in set(dict1).intersection(dict2)] ['is a color', 'is another color']
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.