I correctly completed this section; however I was reviewing the code and cannot understand the reason for the following line:
I even deleted the line and the code still ran correctly. Can someone explain the reason this line was included, and what does the "return" action do?
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 9! Make sure to # include the number 10 between the parentheses. square(10)