Python Python Basics Functions and Looping Create a Function

Marek Ostrowski
Marek Ostrowski
4,436 Points

I got EOF in line number = int (input ("Enter an integer number: ")) File "", line 5, in EOFError: EOF when reading
import math
def square(number):
    return math.ceil(square)

number = int (input ("Enter an integer number: "))
square = number * number

1 Answer

Steven Parker
Steven Parker
203,443 Points

In this challenge, the argument will be passed directly to the function so you won't need to "input" anything. You also won't need the "math" library here.

Also, don't forget the hint given in task 1 about how to do the math where it said "A square is the value multiplied by itself. eg: The square of 5 is 25. 25 = 5 x 5"