Computer Science, asked by RykerTyson, 1 day ago

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

Answers

Answered by sanskar86254
2

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.

Similar questions