Skip to content
Code ReadingSum of the Second Half
Break the Code

Sum of the Second Half

Write a list for which this function gives the wrong answer.
1def second_half(values):
2 half = len(values) // 2
3 return sum(values[half:])