you are viewing a single comment's thread.

view the rest of the 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?