Nitin

33%
Flag icon
Firstly, any variable declared inside a function is only accessible within the function. These are known as local variables. Any variable declared outside a function is known as a global variable and is accessible anywhere in the program.
Learn Python in One Day and Learn It Well: Python for Beginners with Hands-on Project
Rate this book
Clear rating
Open Preview