In Python Set course_student's last_name to Smith, age_years to 20, and id_num to 9999.

Sample output for the given program:
Name: Smith, Age: 20, ID: 9999

class StudentData(PersonData):
def __init__(self):
PersonData.__init__(self) # Call base class constructor
self.id_num = 0

def set_id(self, student_id):
self.id_num = student_id

def get_id(self):
return self.id_num


course_student = StudentData()

''' Your solution goes here '''

print('{}, ID: {}'.format(course_student.print_all(), course_student.get_id()))



Answer :