What's wrong: return square(10)



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


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


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:


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.