Python Python Basics Functions and Looping Create a Function

define square challenge

can anyone tell me what I am doing wrong in this exercise.

squaring.py
def square(number):
    result = number ** 2
    print("The square of {} is {}".format(result, number))
square(5)

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 49,890 Points

For task 1 you should just return the squared number result. No test code either.

Thanks for the response,