Vidyalelo
Python · Q50

Functions in Python

Programming · Python · question 50

Q50

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)

A.
10
56
Answer
B.
45
56
C.
10
20
D.
Syntax Error

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board