Python
Which meth ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
Which method checks if provided object is an instance of specified class?
belongs_to(obj, class)
isinstance(obj, class)
isinstance_of_class(obj, class)
obj.belongs_to(class)
Explanation
isinstance(obj, class) method return True if obj is an instance of specified class and False otherwise.
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
P
ython
Quiz
Login to learn Python
or
Read more about
Python Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Keep exploring
Python quizzes
Consider following code: $var = 1 + "-1.3e3"; echo $va...
Consider following code snippet: print_r("Hello World", t...
Consider following code snippet: $a = 3; $b = '3'; if ($a...
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment