Python Python Basics Functions and Looping Create a Function

Jorge Grajeda
Jorge Grajeda
538 Points

I've tried to figure out this problem and don't really understand the final part of it, could somebody please help?

squaring.py
def square(number):
    return number * number
result = square(value)
print(result)

1 Answer

Mark Sebeck
MOD
Mark Sebeck
Treehouse Moderator 26,462 Points

You just need to put 3 in for the value argument

def square(number):
    return number * number
result = square(3)
print(result)