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
jordan GERMINARO
281 Pointsi dont know what im doing wrong
def square (number): return number*number
number = input("what number to Square?") answer = square(number)
print("the answer is().".format(answer))
please help
2 Answers
KRIS NIKOLAISEN
54,974 PointsYou are receiving an error because the code checker will not respond to the input function. The only code you need for task 1 is the first two lines:
def square(number):
return number*number
subhash w
1,143 Pointsin the print statement, the the answer is (). but we need to use {} instead.
jordan GERMINARO
281 Pointsjordan GERMINARO
281 Pointsohhh I just went to far ahead