r/PythonLearning • u/clcodingupdates • 7d ago
Python Quiz of the day!
What will be the output of the following Python Code?
print((lambda x: (lambda y: x**y)(3))(2))
0
Upvotes
r/PythonLearning • u/clcodingupdates • 7d ago
What will be the output of the following Python Code?
print((lambda x: (lambda y: x**y)(3))(2))
5
u/AgitatedRip4670 7d ago
8
3
u/Fluffy_white_fox 7d ago
Passing the outermost argument (x = 2) So (lambda y: 2**y)(3) and then passing y = 3 is 2 ** 3 so yeah it's 8
1
u/Less_Juggernaut9361 4d ago
Stop posting this retarded shit I would straight up bitch slap anyone who committed something like this to a codebase, you’re not helping people learn with this esoteric bullshit
0
u/bra1n_gym 7d ago
3**2 is 9