A

Admin • 833K Points
Coach

Q. Which function checks if a class is subclass of another?

  • (A) issubclass()
  • (B) isinstance()
  • (C) checksubclass()
  • (D) issub()
  • Correct Answer - Option(A)
  • Views: 28
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`issubclass(Sub, Super)` returns True if Sub is a subclass of Super.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.