Python Python Basics Functions and Looping Create a Function

HARUN SAPLI
HARUN SAPLI
2,581 Points

squaring.py

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

1 Answer

Jeff Muday
MOD
Jeff Muday
Treehouse Moderator 23,332 Points

The second part of this challenge requires using "square()" with the paramter 3 and assigning to a variable named result. This should get you going on it.

def square(number):
    return number * number

result = square(3) # this will fix it.