Created
March 8, 2012 17:48
-
-
Save adrianp/2002312 to your computer and use it in GitHub Desktop.
True = False in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A funny thing about Python: http://hatepaste.com/paste/6c7e1a3c | |
True = False | |
if True: | |
print "ORLY?" | |
else: | |
print "YARLY!" | |
# BUT, this will work only in Python 2.x; in Python 3.x you will get | |
# "SyntaxError: assignment to keyword" at line 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment