Nathan English2,644 Points
What am I missing?
Create a function named square. It should define a single parameter named number.
In the body of the function return the square of the value passed in.
(A square is the value multiplied by itself. eg: The square of 5 is 25. 25 = 5 x 5)
def square(number): number = input("What is your number") Value = number * number Print("The square of",number,"is",Value) return Value
KRIS NIKOLAISENPro Student 46,024 Points
You are doing more than is asked. The function has an input parameter so the input statement is unnecessary. You also don't need to print anything. Remove those two lines and you should be good.