Vidyalelo
Python · Q120

Functions in Python

Programming · Python · question 120

Q120

What happens if a local variable exists with the same name as the global variable you want to access?

A.
Error
B.
The local variable is shadowed
C.
Undefined behavior
D.
The global variable is shadowed
Answer

Answer: Option D

Solution

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