Examveda

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: Option D


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python