Medium
Items Over a Price
Read n lines of
item price, then a limit. Using a dictionary comprehension, keep only items priced above the limit and print the resulting dictionary.Input
n, the lines, then the limit.
Output
A dictionary.
Sample 1
Input
3 tea 20 cake 80 book 350 50
Output
{'cake': 80, 'book': 350}Sample 2
Input
1 pen 12 100
Output
{}Output appears here