# Write a Python program to Filter dictionary values in heterogeneous dictionary # Python3 code to demonstrate working of # Filter dictionary values in heterogeneous dictionary# Using type() + dictionary comprehension  # initializing dictionarytest_dict = {'Gfg' : 4, 'is' : 2, 'best' : 3, 'for' : 'geeks'}  # printing original dictionaryprint("The original dictionary : " + str(test_dict))  # initializing K K = 3  # Filter dictionary values in heterogeneous dictionary# Using type() + dictionary comprehensionres = {key : val for key, val in test_dict.items()                   if type(val) != int or val > K}  # printing result print("Values greater than K : " + str(res)) 