What Will Be The Output Of The Following Python Codep Pre #701
What will be the output of the following Python code?</p> <pre><code class="language-python">def f(x): print("outer") def f1(a): print("inner") print(a,x) f(3) f1(1)</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Argument Passing, Variables and Recursion - Python Global vs Local Variables - Quiz No.1.
What will be the output of the following Python code?
def f(x): print("outer") def f1(a): print("inner") print(a,x) f(3) f1(1)
outer error
inner error
outer inner
error