I'm trying something realy easy, but it's not working.
I want to change the boolean value of x, from True to False, but even though I'm returning x with it new value, when I check, it seems that the value never changed.
x = True
def example():
x = False
return x
example()
print(x)
It prints that x is True, and the boolean value of x doesnt change, I think that the problem is the use of the def and return statement, but, clearly I dont know what I'm doing wrong.
Thanks in advance! :D