Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics Functions and Looping Create a Function

Marek Ostrowski
Marek Ostrowski
16,543 Points

I got EOF in line number = int (input ("Enter an integer number: ")) File "", line 5, in EOFError: EOF when reading

squaring.py
import math
def square(number):
    return math.ceil(square)

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

1 Answer

Steven Parker
Steven Parker
231,268 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"