Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

difference between local and global variable in python

A global variable is a variable that is accessible globally.
A local variable is one that is only accessible to the current scope,
such as temporary variables used in a single function definition.
 
PREVIOUS NEXT
Tagged: #difference #local #global #variable #python
ADD COMMENT
Topic
Name
8+7 =