Python Dates and Times in Python Let's Build a Timed Quiz App The Question Classes & the Plan

Yongyut Ruangsirinusorn
Yongyut Ruangsirinusorn
Pro Student 4,008 Points

Why both class attributes and instance attributes are in the classes?

I saw Kenneth had both 'questions = []', class attributes, and 'self.questions', instance attributes, in Quiz class. But I don't understand why. Also in, he used 'answer = None' and 'text = None' but in Add and Multiply class he used self.answer and self.text instead. Are class attributes in this scenario necessary? Thank you.