> masteringswe_
codingpython

Lambda - late binding in a loop

Fill in the following two implementations. get_funcs() should return a list of lamba functions. Each lambda should print the current value of i in each iteration of the loop. Then at the bottom of the code, invoke each lambda function.

pythondef get_funcs():
		lambdas = []
		
		for i in range(10):
				# ...your implementation...
		
		return lambdas
		
funcs = get_funcs()

for func in funcs:
		# ...your implementation...