I think that the reason you’re getting the error is because the “terminal”, in that exercise anyway, is not configured to accept input. So, when you’re trying to get input from the user - which, in the real world would be a totally normal and expected thing to do - the terminal area can’t handle that, so it tries to just carry on and you’re getting the EOF error.
I suspect that, for the purposes of that project, you’re meant to pass the values for weight etc directly into your function calls rather than getting a value via input in the terminal.
I used the input statement because the instructions for that section said to “ask the user for the package weight.” The rest of my code worked just fine after dropping the input statement, but I wanted to make sure I wasn’t missing something obvious.
I’m glad we found an answer. It was driving me nuts!!
EOF is short for “End Of File”. My guess is that when the terminal tries to handle keyboard input and fails, the closest thing it can come up with is “dang, I hit the end of the file that you’re trying to read”, thus the EOF error. Perhaps it sees user input as a form of file input?