Hard copy printing

Please read the pinned thread in order to understand how to post code with proper formatting, so that we can see it properly.

It does not look to me like there is a problem with the actual printing code. Instead, nothing can run at all, because of a typo. When you run the code as a script, the special __name__ variable is set to '__main__' - with two underscores on each side.