Skip to content
CodeItRaw
Code Reading
/
Sum of the Second Half
Path
Play
Daily
Leaderboard
tr
Break the Code
Sum of the Second Half
Write a list for which this function gives the wrong answer.
1
def
second_half
(values):
2
half =
len
(values) //
2
3
return
sum
(values[half:])