Exerpad
Exercise 3 · Chapter: FunctionsRequired+50 XP

Fix the Return

This function should return the square of a number, but it prints instead of returning. Fix it so the code below works!

Expected output:

25
Need a hint?
3 available · costs 5 XP each
python
def square(n):
print(n * n)

result = square(5)
print(result)
Output
Run your code to see the output here.