Session 5 Homework 

Session 5 homework. It looks like this will supersede a pull request for Session 4 homework as well.

I usually use:

while True:

and then break when done, rather than setting a flag.

and if you want to read the whoel file line by line anyway, then:

for line in the_file:

is a little cleaner.