πŸ“Š Python
Q. What does the `isinstance()` function do?
  • (A) Compares values
  • (B) Checks type of variable
  • (C) Returns class name
  • (D) Prints variable
πŸ’¬ Discuss
βœ… Correct Answer: (B) Checks type of variable

Explanation: `isinstance(obj, type)` checks if `obj` is an instance of `type`.

Explanation by: Mr. Dubey
`isinstance(obj, type)` checks if `obj` is an instance of `type`.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
63
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate