python 3 majic methods code example
Example: python magic methods
# dir() function to see the number of magic methods inherited by a class:
print(dir(MyClass))
# dir() function to see the number of magic methods inherited by a class:
print(dir(MyClass))