CJCoding With Joseph
15free / daySign inCreate account

Eligible For Honours

An HonourStudent is a Student (is-a), so the subclass passes name and grades up to the parent constructor with super().__init__ and inherits average. Write the body of is_eligible so it returns True when the inherited average is 80 or more and False otherwise. Do NOT write a main block or any top-level test code; the tests construct the class. Input: one line of grades separated by spaces, which the tests read as floats and hand to the constructor; the tests then print the average and the result of your method.

Expected Output:

85.0
True

= newline. The output ends with a newline — print one after the last line.

Hints2 available
Topics:
ClassesInheritance
📥 Auto-Input:
88 92 75\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.