Why does my program exit after handling the EOFError instead of running the code inside the exception?
I want to print out a dictionary’s contents after the user inputs ctrl-d, and while the program handles the exception for the EOFError, it doesn’t carry out the code inside the exception.