Global variables are the one that are defined and declared outside a function and we need to use them inside a function.
Interviews3 answers
What are local variables and global variables in Python?
3 Answers
Dhanraj MPosted Jul 24, 2019, 6:23 PM EDT
variable declare inside function known as local variable and outside the function is known as global variable
Bidyasagar MishraPosted Jul 11, 2019, 4:18 AM EDT
A variable declared inside the function's body or in the local scope is known as local variable.
Nonlocal variable are used in nested function whose local scope is not defined. This means, the variable can be neither in the local nor the global scope.
Dipa MehtaPosted Jun 17, 2019, 4:43 AM EDT


