What's wrong: return square(10)


#1


#2

The line to call should look something like this...

square(25)

I suspect the second return line is raising a compiler error?


#3

I agree with mtf
Your line:

return square(10)

is not meant to be indented. Also it should not be a 'return' command.
This is what your code should look like:


#4

Off topic. When we type a code directive into the command line (console) it is a command. When our program passes it to the compiler, it is a statement. There is a subtle difference, but once we see it, the fog dissipates.