Python Programming - Classes - Discussion
Discussion Forum : Classes - General Questions (Q.No. 14)
14.
What is the purpose of the
isinstance()
function?
Answer: Option
Explanation:
The
isinstance()
function is used to check if a variable is an instance of a specified class or a tuple of classes. It returns True
if the object is an instance of any of the given classes.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers