What Happens If A Local Variable Exists With The Same Name As #709
What happens if a local variable exists with the same name as the global variable you want to access?
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Argument Passing, Variables and Recursion - Python Global vs Local Variables - Quiz No.2.
What happens if a local variable exists with the same name as the global variable you want to access?
Error
The local variable is shadowed
Undefined behavior
The global variable is shadowed