Ex.41 CTRL-D does not execute EOFError function

I am stuck on ex41 (sort of). I can run the code fine, however, whenever I try to exit or execute the EOFError funtion but inputting CTRL-D, it doesn’t exist out of while-loop. It continues on.
If I type in CTRL-C is exits me out with an error, Keyboard Interrupt.
Not sure what I am doing wrong.
Any input would be greatly appreciated!ex41_

Are you on Windows? If so, try ctrl+z and then return.

Yes I am using windows. CTRL-Z worked. Thanks!

A free service run by Zed A. Shaw for learncodethehardway.org.