
Question: Filter the dictionary by removing all items with a value of greater than 1.
d = {"a": 1, "b": 2, "c": 3}
Expected output:
{'a': 1}

Hint1:Use dictionary comprehension.

Hint 2:Inside the dictionary comprehension access dictionary items with d.items() if you are on Python 3, or dict.iteritems()if you are on Python 2.