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!

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

Georgi Anil Jaicob
Georgi Anil Jaicob
Python Web Development Techdegree Student 962 Points

can't find the answer for square

def square(number):
    return number * number

number = int(input("What is the number to be square root "))
square_root = square(number)
print (square_root)

2 Answers

Hi Georgi,

The challenge is asking you to just call your function with the number 3 as the parameter, and then save the result to a variable labeled result. It is not asking you to get the input from the user. This is why the challenge check is failing.