The Loop Variable Cell
def make_funcs():
funcs = []
for i in range(3):
funcs.append(lambda: i * 10)
return funcs
print([f() for f in make_funcs()])
What does this print? Write the exact output.
Sign in to answer questions and track your progress
Sign In