T

Tanmay • 2.43K Points
Master

Q. What is the output of the following code?

Code:
a = lambda q: q * 2
b = lambda q: q * 3
x = 2
x = a(x) 
x = b(x) 
x = a(x) 
print x
  • (A) 2
  • (B) 6
  • (C) 24
  • (D) Error
  • Correct Answer - Option(C)
  • Views: 197
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics