3. Call and Response


What is wrong with this code?

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.

I'm getting an error : Did you remember to call square(10) on line 9?


This looks like it is inside the function code block.


Got it! Thanks! I accidentally gave it space.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.