With global and local variables of same name, how to access global variable inside function?q


#1

Question about section 10, Global and Local Variables. The example has my_number as both a global variable and a local variable, two different variables. Is it possible to use the global variable inside the function if the local variable exists, and if so, how?

Thanks!


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.