Fumihito Takanami2,075 Points
what is the wrong this code?
def square(number): result = number ** 2 return(result)
Daniel TuratoJava Web Development Techdegree Graduate 30,115 Points
Result is meant to be assigned outside of the function to a call of the square method. So your code would look like this:
def square(number): return number ** 2 result = square(3)