What Will Be The Output Of The Following Python Codep Pre #738
What will be the output of the following Python code?</p> <pre><code class="language-python"> def check(n): if n < 2: return n % 2 == 0 return check(n - 2) print(check(11)) </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 Shallow Copy vs Deep Copy - Quiz No.2.
What will be the output of the following Python code?
def check(n): if n < 2: return n % 2 == 0 return check(n - 2) print(check(11))
False
True
1
An exception is thrown