class Student:
# Constructor
def _init_(self):
self.id_number = 0
self.grades_list = []
self.grades_total = 0
class Student:
def _init_(self, id_number=0, grades_list=None, grades_total=0):
if grades_list is None:
grades_list = []
self.id_number = id_number
self.grades_list = grades_list
self.grades_total = grades_total
Comments
Leave a comment