What will be the output of the following Python code? [code] >>> class A: pass >>> class B(A): pass >>> obj=B() >>> isinstance(obj,A) [/code]

What will be the output of the following Python code?
Code:
>>> class A:
	pass
>>> class B(A):
	pass
>>> obj=B()
>>> isinstance(obj,A)
A. True
B. False
C. Wrong syntax for isinstance() method
D. Invalid method for classes
 

Tìm kiếm

Back
Top