What Will Be The Output Of The Following Python Codep Pre #660
What will be the output of the following Python code?</p> <pre><code class="language-python" line="1"> L = [lambda x: x ** 2, lambda x: x ** 3, lambda x: x ** 4] for f in L: print(f(3)) </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Functions - Python Function - Quiz No.3.
What will be the output of the following Python code?
L = [lambda x: x ** 2, lambda x: x ** 3, lambda x: x ** 4] for f in L: print(f(3))
27 81 343
6 9 12
9 27 81
None of the mentioned