Boston Python Workshop 8/Friday/Linux interactive Python: Difference between revisions
Content added Content deleted
imported>Jesstess No edit summary |
imported>Jesstess No edit summary |
||
Line 24: | Line 24: | ||
</pre> |
</pre> |
||
and pressing enter. Now you're back at the Linux command prompt |
and pressing enter. Now you're back at the Linux command prompt that has a $ sign.</li> |
||
</ol> |
</ol> |
||
Latest revision as of 00:45, 12 July 2013
Practice starting and exiting Python
- Open a Terminal command prompt. You can find the Terminal application at Applications/Accessories/Terminal, or it may already be on your menu bar.
- To start Python, type
python
at the command prompt and press enter. You should see something like
Python 2.7.5 (r252:60911, Jan 24 2011, 17:44:40) [GCC 4.3.2] on linux2 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 Linux command prompt that has a $ sign.
Success!
Practice these steps until you feel comfortable navigating to a command prompt, starting Python, and exiting Python.