demo_ref_issubclass.py:
class myAge: age = 36 class myObj(myAge): name = "John" age = myAge x = issubclass(myObj, myAge) print(x)
C:\Users\My Name>python demo_issubclass.py
True