Session 04 homework and labs

you really want to catch the particular Exceptions you are expecting here:

except (EOFError, KeyboardInterrupt) :

a bare except is rarely a good idea.