Theory ofIntelligence
← PRACTICE/
Medium
Python• OOP

School System

Create a Person base class and derive Student and Teacher.

Teacher has subjects taught; Student has enrolled courses.

Add a School class that manages both.

OOP Focus: Multiple inheritance or composition (model the relationships clearly).

Note: This is statement-only in the current Practice version; stdout should be empty.

Sample Test Verification
1 Test Case
Statement & Architecture VerificationThis drill validates class blueprints, object attributes, and method state transitions without requiring console printing.
solution.py
Initializing Monaco Python Environment...
Input (stdin)
(empty string)
Expected Output (stdout)
(no output expected)