Computer Science, asked by PRANAYCHOWDARY, 4 months ago

Briefly explain about the scope of variable in functions in python ?



Answers

Answered by aa2061458
1

\displaystyle\huge\red{\underline{\underline{QuEsTiOn}}}

Variables that are defined inside a function body have a local scope, and those defined outside have a global scope. This means that local variables can be accessed only inside the function in which they are declared, whereas global variables can be accessed throughout the program body by all following.

\mathbb\color{red}{MAKE} \color{blue}{ME}\color{Green} BRAINLIST

Similar questions