A

Admin • 828.03K Points
Coach

Q. What is the output of: `print(type(lambda x: x))`?

  • (A) <class 'function'>
  • (B) <class 'lambda'>
  • (C) <class 'method'>
  • (D) <class 'object'>
  • Correct Answer - Option(A)
  • Views: 5
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
Lambdas are anonymous functions, and their type is `<class 'function'>`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.