Anonymous user
Boston Python Workshop 8/Friday/Windows Python scripts: Difference between revisions
Boston Python Workshop 8/Friday/Windows Python scripts (view source)
Revision as of 00:57, 12 July 2013
, 10 years agono edit summary
imported>Jesstess No edit summary |
imported>Jesstess No edit summary |
||
Line 1:
__NOTOC__
We are going to practice writing and running Python programs (often called "scripts").
===Start your text editor===
Line 20:
===Run the script===
# Start a new
# Navigate to your Desktop directory from a
# Once you are in your Desktop directory, you'll see <code>hello.py</code> in the output of <code>dir</code>.
# Type
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]]
|