Anonymous user
Boston Python workshop 2/Friday setup/Python scripts on Windows: Difference between revisions
Boston Python workshop 2/Friday setup/Python scripts on Windows (view source)
Revision as of 16:29, 13 May 2011
, 13 years ago→Run the script
imported>Jesstess (Created page with 'We are going to practice writing and running Python scripts. ===Start your text editor=== # Launch the Notepad++ text editor. See the [[Boston_Python_workshop_2/Friday_setup/Wi…') |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 14:
</pre>
# Save the script as <code>hello.py</code> in your
===Run the script===
# Start a new command prompt. See the [[Boston_Python_workshop_2/Friday_setup/Terminal_navigation_on_Windows|terminal navigation on Windows]] instructions for the steps to do this.
# Navigate to your
# Once you are in your
# Type
Line 41:
* 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.
[[Boston Python workshop 2/Friday setup|« Back to the Friday setup page]]
|