See if you are able to answer these python questions:
[code lang=”python”]
lams = []
for i in range(10):
lams.append(lambda:i)
print [f() for f in lams]
[/code]
I came I saw I messed up
See if you are able to answer these python questions:
[code lang=”python”]
lams = []
for i in range(10):
lams.append(lambda:i)
print [f() for f in lams]
[/code]