LearnPy Hub
← Inheritance & Special Methods problems
Easy

isinstance Check

With Animal, Dog(Animal) and Cat(Animal), create the object named in the input (Animal, Dog or Cat) and print whether it is an instance of Animal, Dog and Cat on one line.

Input

One class name.

Output

Three True/False values.

Sample 1

Input
Dog
Output
True True False

Sample 2

Input
Cat
Output
True False True
solution.py
Output appears here
isinstance Check · Python practice problem · LearnPy Hub