What is the output of the following code? def multipliers(): return [lambda x : i * x for i in range(4)] print([m(2) for m in multipliers()])
Questions & Answers › Category: Programming Language › What is the output of the following code? def multipliers(): return [lambda x : i * x for i in range(4)] print([m(2) for m in multipliers()])