#File: ChapterOO/studentClass2.py """ Daina Green 2017 Chris Brown 2015 """ class Student: # has attributes: first and yog #constructor def __init__(self, ff, name2, yy): self.first = ff #first name self.last = name2 self.yog = yy #year of graduation def pprint( self ): print( self.first, self.last, self.yog) def main(): s1 = Student('Daina','Green',2017) s2 = Student('Chris','Brown',2015) mys = [s1,s2] for s in mys: s.pprint() main()