class Person:
def __init__(self, name, age):
self.name = name
self.age = age
def show_name(self):
print(self.name)
def show_age(self):
print(self.age)
class Students:
def __init__(self, student_id):
self.student_id = student_id
def show_id(self):
print (self.student_id)
class New_student(Person, Students):
def __init__(self, name, age, student_id):
Person.__init__(self, name, age)
Students.__init__(self, student_id)
new_student1 = New_student('Sara', 13, 505)
new_student2 = New_student('John', 15, 601)
new_student1.show_name()
new_student2.show_id()