Here are some assignments that I’ve previously given in this course. You might find them helpful for practice!

Some of these old assignments were from close to the beginning of the course, while others were from close to the end. So, please pay attention to the "Prerequisites" section at the beginning of each assignment description!


Central tendancies

Write Python functions to compute measures of central tendancy.

Checkers

Write a module to manage a game of checkers.

Chess

Write Python modules that form the foundation of a chess game.

Crossword

Write some Python functions to work with crosswords.

Election simulator

Implement an election simulator.

Music

Parse a description of musical notes into frequencies and durations.

Poker

Write a function to compare poker hands.

Ranked ballots

There’s more than one way to run an election!

Receipt

Write a Python script to print a receipt of purchased items.

Room bookings

Write Python functions to implement a room booking system.

Scrabble scores

Write functions to compute letter and word scores in the Scrabble board game.

Shift cipher

Write a Python function to perform a shift (Caesar) cipher.

Trangles and Squares

Write some code to manage a simple board game.