Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

global var in python

a = input('Hello: ')
if a == 'world':
  global b
  b = input('Here')
print b
#Prints the input for be as a result
Source by www.python-kurs.eu #
 
PREVIOUS NEXT
Tagged: #global #var #python
ADD COMMENT
Topic
Name
7+9 =