Skip to content
CodeItRaw
Code Reading
/
Sum of the Last Three
Path
Play
Daily
Leaderboard
tr
Break the Code
Sum of the Last Three
Write a list for which this function gives the wrong answer.
1
def
last_three
(values):
2
return
sum
(values[-
3
:-
1
])