What Will Be The Output Of The Following Python Codep Pre #667
What will be the output of the following Python code?</p> <pre><code class="language-python"> def change(i = 1, j = 2): i = i + j j = j + 1 print(i, j) change(j = 1, i = 2) </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.4.
What will be the output of the following Python code?
def change(i = 1, j = 2): i = i + j j = j + 1 print(i, j) change(j = 1, i = 2)
An exception is thrown because of conflicting values
1 2
3 3
3 2