lst = [1,3,3,1]

newlst = [1]
for i in range(3):
    #newlst += [lst[i]+lst[i+1]]
    newlst.append(lst[i]+lst[i+1])
newlst.append(1)

print(newlst)


#Another
lst = [1]
print(lst)
for j in range(10):
    newlst =[1]
    for i in range(len(lst)-1):
        #newlst += [lst[i]+lst[i+1]]
        newlst.append(lst[i]+lst[i+1])
    newlst.append(1)

    print(newlst)
    lst=newlst
