A

Admin • 802.91K Points
Coach

Q. What will be the output of the following code?

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

Explanation by: Admin
Lambda expressions create function objects.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.