The program contains a mistake in the line where you attempt to print student35.self
. The correct way to access the attributes of the object is to use the attribute names directly, like student35.name
or student35.grade
.
Since self
is not a defined attribute of the Students
class, trying to access student35.self
will raise an AttributeError
.
Thus, the output will be:
an error message