Welcome to the Treehouse Community
Looking to learn something new?
Emmanuel Mejia4,864 Points
Keep getting EOF. Do not know what is the problem this time.
Hello, I keep getting an EOF error when trying to run this. I run it in my idle and comand prompt and it works perfectly but when i try submitting this, it is not working.
def square(number): return number**2 number = int(input("Which number ")) result = square(number) print(result)
John Lack-Wilson8,169 Points
You do not need to print the result or get the input, the challenge is simply asking you to define the function. If you remove everything except the square function, you will pass the challenge.
Alex KoumparosPython Development Techdegree Student 36,862 Points
I explained why you are getting this error yesterday. If you didn't understand my explanation it would be better for you to describe exactly what you are confused by rather than just repeating the same question (and getting basically the same answer again).