A

Admin • 828.03K Points
Coach

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

  • (A) __call__
  • (B) __func__
  • (C) __run__
  • (D) __exec__
  • Correct Answer - Option(A)
  • Views: 12
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
If `__call__` is defined, the object can be called like a function.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.