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 trialkyle storey
1,981 PointsHello community! I cant figure out why I am getting an EOF Error on line 4 [Solved]
I have built this exact same code in the work space and everything runs as it should
def square(number):
return (number * number)
number = int(input("What is being squared? "))
total = square(number)
print("{} squared is {}".format(number, total))
1 Answer
kyle storey
1,981 Pointsnever mind I figured it out. it wasn't wanting me to write my own code lol it was wanting me to use the examples in the instructions.