how to store a returned value of a function in a new variable
def square(number): return number *number print(square(2)) result=repeat_square(2) print(result)
Tabatha Trahan17,662 Points
The code challenges are pretty picky, so first off I would suggest getting rid of the 2 print statements, and then take a closer look at your result variable that is to hold the value of the result of calling the square function. Make sure you use the correct function name (what you used to define the function) when you call the function. If you defined the function name as square, use the name square when calling the function- repeat_square is not defined in the code above. I hope this helps.