What built-in function will you use when you want to check if a given instance belongs to a certain class?

Questions & AnswersCategory: PythonWhat built-in function will you use when you want to check if a given instance belongs to a certain class?
Lokesh Kumar Staff asked 2 years ago

What built-in function will you use when you want to check if a given instance belongs to a certain class?
a. issubclass()
b. isinstance()
c. bool()
d. type()
e. info()

1 Answers
Lokesh Kumar Staff answered 2 years ago