Q. Which special method allows an object to be called like a function?

  • (A) __call__
  • (B) __func__
  • (C) __run__
  • (D) __exec__
πŸ’¬ Discuss
βœ… Correct Answer: (A) __call__
Explanation: If `__call__` is defined, the object can be called like a function.
Explanation by: Mr. Dubey
If `__call__` is defined, the object can be called like a function.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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