Created
June 30, 2015 21:14
-
-
Save j00bar/a287dbc636888410cd27 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| Plucky-Badger-2:celeritypy jginsberg$ ipython | |
| Python 2.7.6 (default, Sep 9 2014, 15:04:36) | |
| Type "copyright", "credits" or "license" for more information. | |
| IPython 3.0.0 -- An enhanced Interactive Python. | |
| ? -> Introduction and overview of IPython's features. | |
| %quickref -> Quick reference. | |
| help -> Python's own help system. | |
| object? -> Details about 'object', use 'object??' for extra details. | |
| In [1]: list_of_numbers = range(20) | |
| In [2]: print list_of_numbers | |
| [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
| In [3]: for i in list_of_numbers: | |
| ...: print i | |
| ...: if i > 12: | |
| ...: break | |
| ...: | |
| 0 | |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| In [4]: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment