Skip to content
Code ReadingSum of the Last Three
Break the Code

Sum of the Last Three

Write a list for which this function gives the wrong answer.
1def last_three(values):
2 return sum(values[-3:-1])