Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python global variables

#### A_FILE.PY
a_global_variable = "Hello"
####sys.path.append(".")

##### B_FILE.PY
import a_file

output = a_file.a_global_variable

print(output)
------> Hello
Source by www.python-kurs.eu #
 
PREVIOUS NEXT
Tagged: #python #global #variables
ADD COMMENT
Topic
Name
2+2 =