I just have a question, why in this example we type return
Call and Response
def square(n): """Returns the square of a number.""" squared = n ** 2 print "%d squared is %d." % (n, squared) return squared square(10)
and in this one we dont use it.
Parameters and Arguments
def power(base, exponent): # Add your parameters here! result = base ** exponent print "%d to the power of %d is %d." % (base, exponent, result) power(37, 4) # Add your arguments here!