Boston Python Workshop 8/Friday/OSX interactive Python: Difference between revisions
Content added Content deleted
imported>Jesstess (Created page with "<ol> <li>Start up a Terminal command prompt. You can find the Terminal application through Spotlight, or navigate to Applications/Utilities/Terminal.</li> <li>To start Python,...") |
imported>Jesstess No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
== Practice starting and exiting Python == |
|||
<ol> |
<ol> |
||
<li>Start up a Terminal command prompt. You can find the Terminal application through Spotlight, or navigate to Applications/Utilities/Terminal.</li> |
<li>Start up a Terminal command prompt. You can find the Terminal application through Spotlight, or navigate to Applications/Utilities/Terminal.</li> |
||
Line 7: | Line 9: | ||
</pre> |
</pre> |
||
at the command prompt and |
at the command prompt and press enter. You should see something like |
||
<pre> |
<pre> |
||
Python 2.7. |
Python 2.7.5 (r261:67515, Feb 11 2010, 00:51:29) |
||
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin |
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin |
||
Type "help", "copyright", "credits" or "license" for more information. |
Type "help", "copyright", "credits" or "license" for more information. |
||
Line 22: | Line 24: | ||
</pre> |
</pre> |
||
and |
and pressing enter. Now you're back at the OS X command prompt that has a $ sign.</li> |
||
</ol> |
</ol> |
||
Latest revision as of 00:44, 12 July 2013
Practice starting and exiting Python
- Start up a Terminal command prompt. You can find the Terminal application through Spotlight, or navigate to Applications/Utilities/Terminal.
- To start Python, type
python
at the command prompt and press enter. You should see something like
Python 2.7.5 (r261:67515, Feb 11 2010, 00:51:29) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>
The>>>
indicates that you are at a Python prompt. - Exit the Python prompt by typing
exit()
and pressing enter. Now you're back at the OS X command prompt that has a $ sign.
Success!
Practice these steps until you feel comfortable navigating to a command prompt, starting Python, and exiting Python.