Python Python Basics Functions and Looping Create a Function

Mihrije Zuka
Mihrije Zuka
151 Points

i don't know how to do it

how?

squaring.py
def square(number):
    total = 

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 43,358 Points

You've started out ok.. You just need to complete: In the body of the function return the square of the value passed in.

number is being passed in. The square of number is number*number. This is what you should return.

def square(number):
    return number*number 
Mihrije Zuka
Mihrije Zuka
151 Points

thanks ^_^, I already figured it out.