Python mendapatkan bagian kamus
a_dictionary = {"a": 1, "b": 2, "c": 3, "d": 4}
a_subset = {key: value for key, value in a_dictionary.items() if value > 2}
print(a_subset)
# Output:
# {'c': 3, 'd': 4}
Helpless Hedgehog