Python Programming - Inheritance - Discussion

Discussion Forum : Inheritance - General Questions (Q.No. 86)
86.
In Python, what is the purpose of the isinstance() function?
To check if an object is an instance of a class
To check if a class is a subclass of another class
To check if two classes have the same attributes
To check if an object has a specific attribute
Answer: Option
Explanation:
The isinstance() function is used to check if an object is an instance of a particular class or a tuple of classes.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.