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

squaring.py
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.