The problem is my program can't increment variable 'x'.
This is code from the main.py:
from functions import increment
x = 1
print('x =',x)
increment()
print('x =',x)
This is the code from functions.py:
def increment():
global x
x += 1
And I'm receiving error "name 'x' is not defined". Help, I'm beginner.