Python Python Basics Functions and Looping Create a Function

erik Jones Oniga
erik Jones Oniga
1,262 Points

square function


can somebody please help me there?

Thank you!
def square(number):
    number = 5 * 5
    return number

2 Answers

Steven Parker
Steven Parker
172,328 Points

You're pretty close, but the number "5" was just an example. The function should not use any fixed number but instead should multiply the argument by itself.