Functions: Call and Response bug


#1

Ok here, there is something wrong with this for here is my code:

def square(n):
    """Returns the square of a number."""
    squared = n**2
    print "%d squared is %d." % (n, squared
    return squared
square(10)

and the error says:
File "python", line 5
return squared
^
SyntaxError: invalid syntax

but return is a valid python keyword, right?


#2

You're missing a ) after squared in your argument on line 4, the program thinks line 5 is a continuation of line 4


#3

I see that but now it is taking forever to load.