In python... I have a list of elements \'my_list\', and a dictionary \'my_dict\' where some keys match in \'my_list\'.
I would like to search the dictionary and retrieve
What about print([kv for kv in dict.items() if kv[0] in list])
print([kv for kv in dict.items() if kv[0] in list])