Skip to content

Instantly share code, notes, and snippets.

@maluta
Created June 24, 2014 23:00
Show Gist options
  • Save maluta/8debf29e56f1694d1d7d to your computer and use it in GitHub Desktop.
Save maluta/8debf29e56f1694d1d7d to your computer and use it in GitHub Desktop.
---
# python 3
>>> print(42)
42
# python 2
>>> print 42
42
---
# python 3
>>> sum([x for x in range(101)])
5050
# python 2
>>> sum(range(101))
5050
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment