Call and Response


Hello, I have checked the previous answers for this topic where the advice was to just put square (10) at line 9. I have done it but it still shows me this error message: Oops, try again. Your code looks a bit off. Check the Hint if you need help! Your code threw the following error: invalid syntax (python, line 9)

This is my 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.


Help please.



Do you have square(10) :?
Did you include that colon after it? If you did, delete it and run the code again.
I hope that helps. If it did remember to mark this topic as solved, if not let me know what the error message is.


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