Q. What does `isinstance(obj, class)` do?

  • (A) Checks if `obj` is an instance of `class`
  • (B) Creates a new instance
  • (C) Prints the type
  • (D) Deletes the object
πŸ’¬ Discuss
βœ… Correct Answer: (A) Checks if `obj` is an instance of `class`
Explanation: `isinstance()` checks class membership.
Explanation by: Mr. Dubey
`isinstance()` checks class membership.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
113
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
88%
Success Rate