how to create a global variable python code example
Example 1: how to make variable global in python
global variable
variable = 'whatever'
Example 2: 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