2008 September 13 / jjddaavviiss@@ccaarrlleettoonn..eedduu

Homework 1

Carleton College CS 201, Fall 2008, Prof. Joshua R. Davis

Testing Python

First, the CS computer labs have changed somewhat, so we should make sure that you can log in and use Python. Go to CMC 306 or CMC 304 and log in on a Mac. If you can't log in, then see Mike Tie (in CMC 305) immediately. You must be registered for the course to log in.

On the Mac, acquaint yourself with Smultron (a text editor) and the Terminal. For example, you might type

print '''hello, world'''
into the text editor, save this program as "test.py" in your home directory, and then execute it in the Terminal using
python test.py

If you have any problems, consult a lab assistant.

Of course, you are welcome to use another Python set-up or your own computer, if you prefer, as long as your programs run correctly on the lab machines. This page may or may not help.

In this course, we use Python for all programming assignments. They begin soon (Wednesday). If you need to practice with Python, try this page.

The Sentinel

The Carleton Sentinel is our departmental e-mail newsletter. It offers news about job opportunities, courses you may want to take, special events, etc. If you are considering a CS major and do not already subscribe to the Sentinel, you may choose to do so here. (It is not required.)

Introductory Survey

Send me an e-mail (at the address above) with "CS 201" in the subject line and the following information in the body.

  1. name
  2. home town/country
  3. probable graduation year
  4. possible major(s)
  5. Why are you taking this course?
  6. How much experience do you have with computers? For example:
  7. How much math have you studied?
  8. Which is better: shark or eagle?
  9. I'm trying to set office hours that make sense for my students. Which of the following slots DO NOT CONFLICT with your other courses?
    1. Mon 3A (11:10-12:20)
    2. Wed 3A (11:10-12:20)
    3. Fri 3A (12:00-1:00)
    4. Mon 5A (1:50-3:00)
    5. Wed 5A (1:50-3:00)
    6. Fri 5A (2:20-3:20)
    7. Tue 2C (10:00-11:00)
    8. Tue 3C (11:00-12:00)
    9. Thu 3C (11:00-12:00)