Anonymous user
Boston Python Workshop 8/Friday/Linux Python scripts: Difference between revisions
Boston Python Workshop 8/Friday/Linux Python scripts (view source)
Revision as of 01:00, 12 July 2013
, 10 years agono edit summary
imported>Jesstess No edit summary |
imported>Jesstess No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 20:
===Run the script===
# Start a
# Navigate to your home directory from a
# Once you are in your home directory, you'll see <code>hello.py</code> in the output of <code>ls</code>.
# Type
Line 29:
</pre>
and
<pre>
Line 35:
</pre>
at a Python prompt and
===Success===
Line 43:
* When you run the <code>python</code> command by itself, you start a Python prompt. You can execute Python code interactively at that prompt.
* When you run the <code>python</code> command with a file name as an argument, Python executes the Python code in that file.
[[File:Champagne.png|100px]][[File:Party.png|125px]]
[[Boston Python Workshop 8/Friday|« Back to the Friday setup page]]
|