For this Question: You are given two classes, Person and Student, where Person is the base class and Student is the derived class. Complete code for Person and a declaration for Student are provided for you in the editor. Observe that Student inherits all the properties of Person.

Complete the Student class by writing the following:

A Student class constructor, which has parameters:
 * A string firstName.
 * A string lastName.
 * An integer idNumber.
 * An integer array (or vector) of test scores,.
A char calculate() method that calculates a Student object's average and returns the grade character representative of their calculated average:

Grading Scale:
 Letter Average
 O 90 <= a <= 100
 E 80 <= a < 90
 A 70 <= a < 80
 P 55 <= a < 70
 D 40 <= a < 55
 T < 40The locked stub code in the editor reads the input and calls the Student class constructor with the necessary arguments. It also calls the calculate method which takes no arguments.

The first line contains firstName, lastName, and isNumber, separated by a space. The second line contains the number of test scores. The third line of space-separated integers describes scores.Output is handled by the locked stub code. Your output will be correct if your Student class constructor and calculate() method are properly implemented.

Sample Input:
Heraldo Memelli 8135627
2
100 80

Sample Output:
Name: Memelli, Heraldo
ID: 8135627
Grade: O

Explanation:
This student had 2  scores to average: 100 and 80. The student's average grade is (100+80)/2 = 90 . An average grade of 90 corresponds to the letter grade O, so the calculate() method should return the character'O'.

, I have written this Solution Code: class Person:
    firstName = 'Default'
    lastName = 'Default'
    idNumber = 0

class Student(Person):

    def __init__(self):
        self.fname, self.lname, self.idnum = map(str, input().split())
        self.cnt = int(input())
        self.score = list(map(int, input().split()))


def calculate():
    

    s = Student()
    sum_grade = 0
    count = 0
    for i in s.score:
        sum_grade += i
        count += 1
        
    grade_n = sum_grade//count
    
    print("Name: {}, {}".format(s.lname, s.fname))
    print("ID: {}".format(s.idnum))
    if grade_n <= 100 and grade_n > 89:
        return 'O'
    elif grade_n > 79:
        return 'E'
    elif grade_n > 69:
        return 'A'
    elif grade_n > 54:
        return 'P'
    elif grade_n > 40:
        return 'D'
    elif grade_n >= 0:
        return 'T'



res = calculate()
print("Grade: {}".format(res)), In this Programming Language: Python, Now tell me if this Code is compilable or not?