OSX interactive Python: Difference between revisions
From CommunityData
No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 9: | Line 9: | ||
at the command prompt and hit enter. You should see something like | at the command prompt and hit enter. You should see something like | ||
<pre> | <pre> | ||
Python | Python 3.4.2 (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 28: | Line 28: | ||
Practice these steps until you feel comfortable navigating to a command prompt, starting Python, and exiting Python. | Practice these steps until you feel comfortable navigating to a command prompt, starting Python, and exiting Python. | ||
[[Category:CDSW]] |
Latest revision as of 22:47, 4 October 2015
- 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 hit enter. You should see something like
Python 3.4.2 (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 hitting enter. Now you're back at the OS X command prompt (which looks something likejesstess$
).
Success![edit]
Practice these steps until you feel comfortable navigating to a command prompt, starting Python, and exiting Python.