
Python:
class Student:
def __init__(self, studentCode, fullName, Sball, specialty):
self.studentCode = studentCode
self.fullName = fullName
self.specialty = specialty
self.Sball = Sball
class University(Student):
def __init__(self):
self.base = []
def addEmpl(self, Student):
self.base.append(Student)
def showByGrade(self, Sball):
for i in self.Sball:
if Sball < 4.5:
print(Student(Sball < 4.5))

Последнее редактирование: