Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with content, and download exclusive resources. Vivek Yadav, an engineering manager from ...
t = [] for i in range(3): t.append(lambda : i) t2 = [] def WTF(i): t2.append(lambda : i) for i in range(3): WTF(i) for x in t: print(x()) for x in t2: print(x()) ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results
Feedback