From 85673af84f2b540a70cbc59bf85293e61d38d48a Mon Sep 17 00:00:00 2001 From: Roman Zhilkin Date: Fri, 7 Mar 2025 13:32:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=D0=B8=20=D0=B0=D0=B1=D1=81=D1=82=D1=80=D0=B0=D0=BA=D1=82=D0=BD?= =?UTF-8?q?=D1=8B=D0=B9=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81=20Person=20=D0=B8?= =?UTF-8?q?=20=D0=BD=D0=B0=D1=81=D0=BB=D0=B5=D0=B4=D0=BE=D0=B2=D0=B0=D0=BB?= =?UTF-8?q?=D0=B8=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81=D1=8B=20=D0=A1=D1=82?= =?UTF-8?q?=D1=83=D0=B4=D0=B5=D0=BD=D1=82=D0=BE=D0=B2=20=D0=B8=20=D0=A3?= =?UTF-8?q?=D1=87=D0=B8=D1=82=D0=B5=D0=BB=D0=B5=D0=B9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app.py b/app.py index e838226..b59cc76 100644 --- a/app.py +++ b/app.py @@ -1 +1,16 @@ +class Person: + def __init__(self, name, age): + self.name = name + self.age = age + + +class Student(Person): + def __init__(self, name, age): + super().__init__(name, age) + +class Teacher(Person): + def __init__(self, name, age): + super().__init__(name, age) + + print("Привет!") \ No newline at end of file