Python Python Basics Functions and Looping Create a Function

Olebogeng Nkele
Olebogeng Nkele
3,018 Points

Great now that you have created your new square method, let's put it to use. Under the function definition, call your

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

1 Answer

Maxwell Newberry
Maxwell Newberry
7,677 Points

You just have a misspelling when you call the square() function.

result = square(3)
Olebogeng Nkele
Olebogeng Nkele
3,018 Points

oh ok, i just have to go through my work before i continue. Thank you