Python - Common keys in list and dictionary
Given a dictionary and list, extract all the keys and list which are common. Input : test_dict = {"Gfg": 3, "is" : 5, "best" : 9, "for" : 0, "geeks" : 3}, test_list = ["Gfg", "best", "CS"] Output : ['Gfg', 'best'] Explanation : Gfg and best are present in both dictionary and List. Input : test_dict