exercise 20

Exercise 20 in Zed Shaw's book Learn Python the Hard Way.
Functions and Files
exercise 20 drill

Exercise 20 drill in Zed Shaw's book Learn Python the Hard Way.
# comments for ex20 and some extra commentary on my thoughts at the end
exercise 20 drill 2 + txt file

Exercise 20 drill 2 in Zed Shaw's book Learn Python the Hard Way.
my attempt at understanding readline()...but it didn't go well, and the
txt file i was testing it with