Boston Python workshop 2/Friday setup: Difference between revisions

From OpenHatch wiki
Content added Content deleted
imported>Jesstess
imported>Jesstess
Line 23: Line 23:
* [[Boston Python workshop 2/Friday setup/Linux text editor|Linux]]
* [[Boston Python workshop 2/Friday setup/Linux text editor|Linux]]


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


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

Revision as of 18:19, 12 May 2011

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

When you get to HubSpot, please start your laptop and get on the wireless network. Then work through the goals on this page in order; they should take between 2 and 3 hours. Lots of staff will be around to help troubleshoot and to answer questions -- don't hesitate to ask!

At the end, a staff member will go through a checklist with you to make sure you're all set for tomorrow.

Goal #1: set up Python

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

Goal #2: Prepare a text editor

In addition to being able to run Python, we are going to install a good text editor for writing and saving Python code during the workshop.

If you would like to use a different text editor from the recommendation for your operating system, please let a staff member know.

Goal #3: practice running Python code interactively

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: get dependencies installed for the Saturday projects

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

Boston Python workshop 2/Friday tutorial


Goal #6: Checkoff