What Will Be The Output Of The Following Python Codep Pre #664
What will be the output of the following Python code?</p> <pre><code class="language-python"> i=0 def change(i): i=i+1 return i change(1) print(i) </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?
i=0 def change(i): i=i+1 return i change(1) print(i)
1
Nothing is displayed
0
An exception is thrown