What is the output of the following Python code snippet?
sq = lambda x: x * x
print(sq(5))
print(sq(5))
Correct answer
C. 25
C. 25
A lambda is an anonymous single-expression function.
Asked in: Python Interview Functions
https://docs.python.org/3/tutorial/controlflow.html#defining-functionsNot sure why the answer is C? Ask here and get an explanation.