1.

What is scope of variable. define global and local variable?​

Answer»

Scope of variable:- The PART of a program where variable is ACCESSIBLE can be define as the scope of that variable.

Global variable:- In PYTHON a variable that is defined outside any FUNCTION or any block is KNOWN as a global variable.

Local variable :- A variable that is defined inside any function or a block is known as a local variable.



Discussion

No Comment Found