Liadan Ryland438 Points
Getting an EOF error, but shouldn't
I'm getting an EOF error on the treehouse site, but when I run this code on my computer using command prompt, it works.
def square(number): return (number * number) number = int(input("What is your favorite number?")) squared = square(number) print(squared)
Jennifer NordellTreehouse Staff
Hi, Liadan Ryland ! I received your request for assistance. It is important when doing these challenges to not do any more than they explicitly ask for. Remember, there is no one over at the other side to put in a number. Rather the code on Treehouse's side is going to run your code and it should execute as expected.
So while code may be functional in your local environment, it does not necessarily mean it will pass the challenge. To advance past step 1 simply erase the last three lines.
Hope this helps!