Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

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:

text
25

💡 Hints

?Hint 1
🔒Hint 2
🔒Hint 3
python
def square(n):
print(n * n)

result = square(5)
print(result)