Magic methods
Magic methods (dunders) start and end with __. __init__ constructs. __str__ is print(). __len__ is len(obj). They hook your class into Python’s built-in syntax.
Write one — class Student with __str__ returning the name. print(s) should show Asha, not <__main__.Student>.
Magic methods — output — Asha. __str__ is what print uses. Without it you would see <Student object>.
Exam tip
Name three dunders and what built-in they power.