A

Admin • 833K Points
Coach

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

  • (A) Compares values
  • (B) Checks type of variable
  • (C) Returns class name
  • (D) Prints variable
  • Correct Answer - Option(B)
  • Views: 24
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`isinstance(obj, type)` checks if `obj` is an instance of `type`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.