Please explain this python code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Please explain this python code

I am unable to understand this code. what we are saying to the interpreter ? please help me to understand it I am beginner 😔 a, b, c = [lambda: x for x in range(3)] print(a()) #2 print(b()) #2 print(c()) #2 https://code.sololearn.com/chWubQyFmz0Y/?ref=app

14th Oct 2020, 1:52 PM
Ratnapal Shende
Ratnapal Shende - avatar
1 Answer
+ 2
Alphin K Sajan i know lambda func bro but I am unable to understand those lines of code that I posted above... please explain it
14th Oct 2020, 2:12 PM
Ratnapal Shende
Ratnapal Shende - avatar