Skip to content

Instantly share code, notes, and snippets.

@xandkar
Created January 14, 2014 22:45
Show Gist options
  • Save xandkar/8427430 to your computer and use it in GitHub Desktop.
Save xandkar/8427430 to your computer and use it in GitHub Desktop.
$ python [17:44:25]
Python 2.7.5 (default, Jun 7 2013, 12:41:17)
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.27)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> [x for x in range(1, 3)]
[1, 2]
>>>
>>> x
2
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment