Vương Tuấn Khải
New member
What will be the output of the following Python code?
A. True
B. False
C. Wrong syntax for isinstance() method
D. Invalid method for classes
Code:
>>> class A:
pass
>>> class B(A):
pass
>>> obj=B()
>>> isinstance(obj,A)
B. False
C. Wrong syntax for isinstance() method
D. Invalid method for classes