What Will Be The Output Of The Following Python Codep Pre #666
What will be the output of the following Python code?</p> <pre><code class="language-python"> a=10 b=20 def change(): global b a=45 b=56 change() print(a) print(b) </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?
a=10 b=20 def change(): global b a=45 b=56 change() print(a) print(b)
10 56
45 56
10 20
Syntax Error