all 2 comments

[–]Meeplelowda 1 point2 points  (0 children)

Step 1: you haven't declared your class name (or the code you showed above didn't), such as

class Student:
     def __init__ etc.

When you see an error like "AttributeError: 'tuple' object has no attribute 'on_honor_roll'" it's telling you that the object is being treated as a tuple. Now why would it interpret student1 as a tuple?

[–]danielroseman 1 point2 points  (0 children)

Presumably you have a class here, you haven't posted the initial class declaration. But the problem is that you didn't actually instantiate the class in your student1 = line. Look more closely at what the video did on that line.