ESC180: Introduction to Computer Programming

Fall 2022

Course staff

Course description   This course serves as an introduction to computer programming and computer science. We will introduce the Python programming language. We will use Python to solve a variety of problems, and practice problem-solving techniques that are applicable to computational problems. We will discuss good practices in software engineering (designing and building large software systems). We will analyze the efficiency of algorithms, and discuss designing efficient algorithms. Various research areas in computer science (AI, software engineering research, the theory of computation, etc.) will be introduced throughout the term. No previous knowledge of programming or computer science is assumed.

The course syllabus is available here (to be posted).


Project 1. Due Oct. 12 at 10:59p.m. (late submission allowed until Sunday Oct 16 23:59p.m.). (6%). Test cases

Project 2. Due Nov. 15 at 10:59p.m. (7%).

Project 3. test.txt Due Dec. 5 at 10:59 p.m. (7%).


Lab 1: Tracing and Conditionals (assigned Sept. 12, show the TA during the lab).

Lab 2: Functions and Local and Global Variables: Simulating a Pocket Calculator (assigned Sept. 19, show the TA during the lab). Video solutions to the warm-up exercise. Solutions

Lab 3: Loops. (assigned Sept. 26). Solutions.

Lab 4: Loops and Lists (assigned Oct. 3). Solutions.

Lab 5: Lists of lists and Tic-Tac-Toe (assigned Oct. 17). Solutions.

Lab 6: Getting started with Gomoku, files, and strings (assigned Oct. 31) Solutions

Lab 7: Gaussian Elimination (assigned Nov. 14) Sample run. Solutions

Lab 8: Debugging, dictionaries, computational linguistics, and web scraping (assigned Nov. 21), Solutions:

Lab 9: To get the answer you must know the answer (assigned Nov. 28), Solutions:,,



The midterm was held on Oct 27.


The exam will be held in December. Past exams are below.

An inclusive environment

We strive to build and maintain an inclusive environment in class — an environment that allows every student to reach their full potential. Please do not hesitate to contact me and/or your preceptor to let us know if you need special accommodation or with any concerns.

Design credit: CS229, Jan 2019.