Boston Python workshop 2/Friday setup

From OpenHatch wiki

Welcome to the Friday evening section of the Boston Python Workshop! Setup hours are from 5pm-8pm at HubSpot.

The goals for this evening are:

  1. set up Python
  2. practice running Python code interactively and from a file
  3. practice printing in Python and using Python as a calculator
  4. get dependencies installed for the Saturday projects

Goal #1: set up Python

This section has instructions for installing Python and running Python from a terminal prompt.

Goal #2: Prepare a text editor

In addition to being able to run Python, you should pick the text editor you'll use for writing and saving Python code during the workshop.

Goal #3: practice running Python code interactively and from a file

Often in these directions, you'll need to type things at Python prompt. To get one:

  • On Windows: Start -> Run -> cmd.exe
    • Type this, and press enter:
    • python
    • Then type this and press enter:
    • exit()
  • On Mac OS:
    • Start 'Terminal' (open Finder, and go to Applications, then Utilities, and double click on Terminal)
    • Type this, and press enter:
    • python
    • Then type this and press enter:
    • exit()
  • On Linux:
    • Open a Terminal (in Ubuntu, go to Applications then Accessories, and click on Terminal):
    • Start 'Terminal' (open Finder, and go to Applications, then Utilities, and double click on Terminal)
    • Type this, and press enter:
    • python
    • Then type this and press enter:
    • exit()

Goal #4: practice printing in Python and using Python as a calculator

Goal #5: get dependencies installed for the Saturday projects