Global Variables in Python
Those Variables which you create outside of a function are by-default global variables. This means that these variables can be used inside an outside functions.Example: x = " X is global variable."def myfunc():  print("Wow!! " + x)myfunc() If you create a variable with the same name inside a function, this variable will be local, and can only be used inside the...
0 Comments 0 Shares 0 Reviews
Sponsored