I have question. In one task I saw on the end of code command return.
def square(n): """Returns the square of a number.""" squared = n ** 2 print "%d squared is %d." % (n, squared) return squared # Call the square function on line 10! Make sure to # include the number 10 between the parentheses. squared(10)
I tried to start the code without this command and everything looked the same
Then why this command of return is?