Spencer Kane234 Points
What is wrong with this?
When ever I test this code it runs smoothly, but when I run it here I get an EOFError
def square(number): return (number*number) number = float(input("")) print(square(number))
Mark Chesney11,661 Points
Hi Spencer. Your function was written 100% correctly. Actually, it's your code written after line 2 that causes the error. If you delete those, it will work just fine.
Create a function named square. It should define a single parameter named number. In the body of the function return the square of the value passed in.