A

Admin • 833K Points
Coach

Q. What does the `isinstance()` function check?

  • (A) Type equality
  • (B) Value equality
  • (C) If an object is an instance of a class or subclass
  • (D) If a class is subclass of another class
  • Correct Answer - Option(C)
  • Views: 31
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`isinstance(obj, Class)` returns True if `obj` is instance of `Class` or its subclass.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.