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 trialDave Navarro
1,625 PointsEOF error
Hi
def square(x):
return (x*x)
number=int(input("Please enter a number"))
print("The square of {} is {}".format(number,square(number)))
why do i get an eof error on this while on other python environment the code runs ok
1 Answer
Chris Freeman
Treehouse Moderator 68,423 PointsYour code seems OK. Can you post the entire error message you are seeing?