CS 111: Introduction to Computer Science

Your first program: counting lines in a file

Due: 5:00PM Friday, September 18. Hand in as counter.py.

This assignment is intended to get you started writing Python code by modifying an existing program to extend its capabilities.

Start by saving a copy of counter.py and playing around with it to make sure you understand what it does and why.

Next, modify the program like so:

Start early, have fun, and ask questions.