LogiQuest
Back to Object Oriented Programming
20

What is the output of the following code?

class Base: pass
class Leaf(Base): pass
print(issubclass(Leaf, Base), isinstance(Base(), Leaf))
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.