LearnPy Hub
← Dictionaries problems
Medium

Student Records

Records: {'Mim': {'dept': 'CSE', 'cgpa': 3.8}, 'Rafi': {'dept': 'EEE', 'cgpa': 3.4}, 'Sara': {'dept': 'CSE', 'cgpa': 3.9}}. Read a name and a field and print the value, or Missing.

Input

Two lines: name, field.

Output

The value or Missing.

Sample 1

Input
Mim
cgpa
Output
3.8

Sample 2

Input
Rafi
dept
Output
EEE
solution.py
Output appears here
Student Records · Python practice problem · LearnPy Hub