What does the following code return?

Questions & AnswersCategory: PythonWhat does the following code return?
1 Answers
Lokesh Kumar Staff answered 2 years ago

b. True
Explanation:
isinstance(object, classinfo) – return True if the object argument is an instance of the classinfo argument, or of a (direct, indirect, or virtual) subclass thereof. If object is not an object of the given type, the function always returns False.