Python - Polymorphism and Dynamic Behavior
Which Python built-in function is commonly used inside a function to implement polymorphism by checking an object's type?
Which Python built-in function is commonly used inside a function to implement polymorphism by checking an object's type?
isinstance() to check if an object is an instance of a class or type.typecheck(), checktype(), and typeof() do not exist in Python.isinstance() for type checking [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions