Python Python Basics Functions and Looping Create a Function

Not sure what I'm doing wrong.

I've tried a bunch of different things like assigning a number as a variable I've looked online and researched function parameters and arguments but it still tells me I'm wrong, not sure what I missed.

squaring.py
def square(number):

    number * number
    return

1 Answer

Brendan Whiting
MOD
Brendan Whiting
Front End Web Development Treehouse Moderator 83,470 Points

You need to put the value you want to return right after the return keyword.

return number * number