Company: Bajaj_Finserv_health_company_2Dec
Difficulty: medium
Dictionary Comprehension Filter Problem Description You are given a list of student records. Each record holds a student's name and the student's scores in different subjects. Build a dictionary, using a Python dictionary comprehension , whose keys are student names and whose values are the students' average scores, keeping only the students whose average score is strictly above a given threshold. Function Implement the function filter_students(student_data, threshold) . Parameters: student_data : a list of tuples (name, scores) , where name is a string and scores is a list of integers. threshold : a float, the threshold score. Return: a dictionary {name: average} containing exactly the students whose average score (the sum of their scores divided by the number of their scores) is strictly greater than threshold . A student whose average equals the threshold is not included. The provided main() reads the input, calls filter_students and prints the result. Input Format Read from standar