Functions: Call and Response bug


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

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

but return is a valid python keyword, right?


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


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