A

Admin • 828.70K Points
Coach

Q. What does `isinstance(obj, class)` do?

  • (A) Checks if `obj` is an instance of `class`
  • (B) Creates a new instance
  • (C) Prints the type
  • (D) Deletes the object
  • Correct Answer - Option(A)
  • Views: 8
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
`isinstance()` checks class membership.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.