Python Python Basics Functions and Looping Create a Function

def square(number): return number*number result = square (3) print(result) Can somebody tell me what is wrong?

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

1 Answer

Your last two lines should be align with the def keyword - you have one space too many.

thank you!!