Skip to content

Instantly share code, notes, and snippets.

@adrianp
Created March 8, 2012 17:48
Show Gist options
  • Save adrianp/2002312 to your computer and use it in GitHub Desktop.
Save adrianp/2002312 to your computer and use it in GitHub Desktop.
True = False in Python
# 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