class Animal and class Dog(Animal), write classify(obj) returning a tuple of two booleans: (isinstance(obj, Animal), type(obj) is Animal). For a Dog instance that is (True, False) — the interview point being that type() ignores subclassing while isinstance honors it.classify(Dog())
(True, False)
A Dog is-an Animal by isinstance, but its exact type is Dog.
type(obj) is Animal is an exact-class test.
Prefer isinstance in real code; know both for interviews.