Chicago Python Workshop/Setup/OSX interactive Python: Difference between revisions

From OpenHatch wiki
Content added Content deleted
imported>Codersquid
(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>Codersquid
(replaced content with template)
 
Line 1: Line 1:
{{Chicago Python Workshop/Setup/Mac interactive Python}}
<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, type

<pre>
python
</pre>

at the command prompt and hit enter. You should see something like
<pre>
Python 2.7.1 (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.
>>>
</pre>

The <code>>>></code> indicates that you are at a Python prompt.</li>
<li>Exit the Python prompt by typing

<pre>
exit()
</pre>

and hitting enter. Now you're back at the OS X command prompt (which looks something like <code>jesstess$</code>).</li>
</ol>

===Success!===

Practice these steps until you feel comfortable navigating to a command prompt, starting Python, and exiting Python.

Latest revision as of 17:18, 9 December 2012

  1. Start up a Terminal command prompt. You can find the Terminal application through Spotlight, or navigate to Applications/Utilities/Terminal.
  2. To start Python, type
    python
    

    at the command prompt and hit enter. You should see something like

    Python 2.7.1 (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.
  3. Exit the Python prompt by typing
    exit()
    
    and hitting enter. Now you're back at the OS X command prompt (which looks something like jesstess$).

Success!

Practice these steps until you feel comfortable navigating to a command prompt, starting Python, and exiting Python.