Skip to content
Break the Code

Sign

Write a number for which this function gives the wrong answer.
1def sign(n):
2 if n > 0:
3 return 1
4 if n < 0:
5 return -1