# Help with Call and Response

#1

I'm not exactly sure what to do here. I've tried other ways of writing this by writing n=10 in the second function or removing "return" in the last line. Nothing seems to get it to work. Any help with be appreciated! Thanks!

File "python", line 9
def square(10):
^
SyntaxError: invalid syntax

``````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.
def square(10):
"""Returns the square of a number."""
squared = n**2
print "%d squared is %d." % (n, squared)
return squared``````

#2

the code is:

def square(n):
squared = n**2
print "%d squared is %d." % (n, squared)
return squared

square(10)

#3

I used 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.
square(10)``````

#4

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