LearnPy Hub
← Comprehensions problems
Medium

Rich Students

Read n lines of name balance (n first) and print a dictionary of only those with a balance over 1000.

Input

n, then n lines.

Output

A dictionary.

Sample 1

Input
3
Mim 1500
Rafi 900
Sara 2000
Output
{'Mim': 1500, 'Sara': 2000}

Sample 2

Input
1
A 5
Output
{}
solution.py
Output appears here
Rich Students · Python practice problem · LearnPy Hub