What are local variables and global variables in Python?
Answer (1)
Local variable : Any variable declared inside a function is known as Local variable and it’s accessibility remains inside that function only.
Global Variable : Any variable declared outside the function is known as Global variable and it can be easily accessible by any function present throughout the program.
Comments (0)



.jpg)
