is_above_85

is_above_85#

Given a dictionary of dictionaries as the input parameter, write a function called is_above_85 that will return the list that contains the student ids of those students who received above 85 in both the midterm and the final.

For example:

The first sample input (for better readability) is as given below:

{
    'A16771125': {'first_name': 'Timothy', 'last_name': 'McCarthy', 'pa': 93, 'rq': 61, 'lab': 90,
                'midterm': 95, 'final': 74},
    'A16560701': {'first_name': 'Regina', 'last_name': 'Pierce', 'pa': 51, 'rq': 66,  'lab': 47,
                'midterm': 97, 'final': 93},
    'A16600612': {'first_name': 'Clementine', 'last_name': 'Pierce', 'pa': 96, 'rq': 98, 'lab': 88,
                'midterm': 99, 'final': 92}
}

Your function should return:

['A16560701', 'A16600612']