`Replace this line with your code.`

# HELP! stuck on number 3 on functions

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

**tkr123**#6

should be

```
squared = n ** 2
return squared
```

then you print after this.

also, print should be out of the function.

**stetim94**#7

not true, this is the default code provided by the exercise:

```
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.
```

all you need to do is add a function call on line 9 (as mentioned in the comments)

so this:

is something you shouldn't do.

The last two lines of your reply are just confusing. And again, not what you have to do for the exercise

**tkr123**#9

No problem! You can mark the post as solved by clicking on the solution button(a tick in a box).

Thanks!

**system**#10

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