UW CSE logo uw

CSE 142: Computer Programming I, Autumn 2007

arrow CSE Home arrow About Us arrow Search arrow Contact Info

CSE 142 Python program

Week 9 Info

Here is the lecture material:

Week 8 Info

Turn your python version of HW7B, personalitytest.py, for a late day (due Sun 11/30 4pm, no late submissions accepted):

Lecture notes- During lecture I discussed how to find more information about what can be done in Python. Similar to the Java API, Python has a tutorial and reference online. In addition to the modules documented there, which are considered "built-in" modules, additional modules can be found elsewhere online by looking for Python libraries or Python bindings. I quickly showed PyGTK as an example.

The second third of class was used to discuss the One Laptop Per Child project. The project has resulted in a $200 or so laptop targeted at children in developing the project. This holiday season they are available to Americans for $400 in the Give One Get One program. The XO, as the laptop is called, is a prime example of Python development. I had hoped to have an actual XO in class but was unable to get one in time. Perhaps next week I will have it.

Week 7 Info

Turn your python version of HW6B, babynames.py, for a late day (due Sun 11/18 8pm, no late submissions accepted):

Here is the lecture material:

Week 6 Info

No homework this week. However, I've added a laundry list of links below which you could peruse. Feel free to email me questions and comments. I've also embedded a Creative Commons video for your viewing pleasure.

Laundry list of coolness:

Week 5 Info

Turn your python version of HW5B, random_walk.py, for a late day (due Sun 11/4 4pm, no late submissions accepted):

Here is the lecture material:

Week 4 Info

Turn your python version of HW4B, birthdays.py, for a late day (due Tues 10/30 8pm, no late submissions accepted):

Here is the lecture material:

Week 3 Info

Turn your python version of HW3B, circles.py, for a late day (due Sun 10/21 4pm, no late submissions accepted):

Here is the lecture material:

Week 2 Info

Turn your python version of HW2B, book.py, for a late day (due Sun 10/14 4pm, no late submissions accepted):

Here is the lecture material:

Week 1 Info

Turn your Python version of HW1, song.py, for a late day (due Wed 10/10 4pm, no late submissions accepted):

Here's the code from Python lecture #1:

Hi all, this is Scott. I'm going to work on this page this weekend. In the meantime, here are some things to get you started.


General info about the CSE 142 Python program:

This fall in CSE 142, we'll conduct a special optional program to offer students a chance to learn a second programming language as you're learning Java. The second language's name is Python.

What is Python?

Python is a language that's good for writing programs to process text and other data. It's used heavily in the Linux operating system and at companies like Google.

Why would I want to learn Python, in addition to Java?

Learning two programming languages is a bit like growing up in a bilingual family: you'll not only learn those two languages well, but you may also learn some higher concepts about programming and programming languages in general.

Who will run the program? Where will I go, and what will I do?

Our Python program will be hosted by TA Scott Shawcroft (tannewt AT cs.washington.edu). Each week, Scott will hold a 1-hour session where he'll teach you how to translate that week's Java course material into Python, as well as exploring other issues about Python, programming, technology, and creativity in general.

The work involved in this program would be the following:

Primarily, these projects will consist of solving the same problem as that week's Java programming assignment, but in Python. There may be other various projects as the quarter goes on.

What reward do I get for doing this? Do I have to do it?

Participation is purely optional. The reward for doing these projects would be small; right now, we're thinking of rewarding these students with 1 free late day for each Python program completed. No grade points will be added or subtracted in any way for participating in this project.

How do I participate?

email Scott (tannewt AT cs.washington.edu) with your name and availability (times on Tuesday are preferred), and we'll get back to you with an official time and place.