Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

PYTHON

Name: ¯\(º_o)/¯ 2012-01-22 9:07

>>> True
True
>>> True = False
>>> True
False
>>> False = True
>>> False
False

IS THIS BECAUSE I FORGOT TO INDENT

Name: Anonymous 2012-01-22 12:48

I have Python's IDLE installed (even though I don't remember the last time I used it), and I tried out a True = False, but it returned a SyntaxError: assignment to keyword. Different version maybe?

In any case, OP's question is kind of easy to answer whether you know Python or not.

x = 5
y = 3

x = y // since y equals 3, x will also become 3

// Now if you try out:
y = x // Remember that the x's current value is 3? This 3 will be assigned to y

y // this will return 3



Assuming it's possible to treat a keyword as a variable name, True = False will make True's value became False, so when you assign True's new value (which is False) to False, False will become (errr... remain) False.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List