Skip to content
CodeItRaw
Code Reading
/
Sum up to n
Path
Play
Daily
Leaderboard
tr
Break the Code
Sum up to n
Write a number for which this function gives the wrong answer.
1
def
sum_to
(n):
2
return
n * (n -
1
) //
2