https://www.codecademy.com/courses/learn-python-3/articles/python-code-challenges-lists

**1.APPEND SUMS**

I have tried the below code and i am getting the partial output .Please check the code and tell me where i have done the mistake.

**CODE **

<

#Write your function here

def append_sum(lst):

sum = lst[-1]+lst[-2] #1+2=3

lst.append(sum)

return lst #should return [1,1,2,3]

new =sum+lst[-2] #3+2=5

lst.append(new)

return lst #should return [1,1,2,3,5]

num= new+lst[-2] #5+3=8

lst.append(num)

return lst #should return [1,1,2,3,5,8]

print(append_sum([1, 1, 2]))