1
I have a very simple method, which takes a Boolean parameter and changes a global one to the negated value of the parameter.
However, using the Pycharm IDE, it returns an error in the snippet global state = not x
state = False
def change_state(x):
global state = not x
What does this error mean? What would be the correct form of the code?