• Introductions - people and topics.
  • Point to course home page at http://www.cs.umb.edu/~eb/480/
  • Play a little with the python interpreter, typing at the
    >>>
    
    prompt to see what happens.
  • Jump into Python. The thread is to write a program that factors an integer.

    Deal with programs in files, not with the python interpreter prompt. The process is incremental - build and test increasingly sophisticated versions. Keep the history, so you can always go back to a stable place. You can find notes about the programs we discussed at factor01.pdf

    Comments in each program explain new python features as we encounter them.

    1. helloworld.py
      Where else would one start?
    2. factor0.py
      Learn a little bit about arithmetic. I won't bother with operator precedence and order of operations - just use enough parentheses to be safe.
    3. factor1.py
      The first algorithm. Loop on possible divisors. Learn (while) loop syntax.

      homework 1.