別解です。
>>> tmp = [16, 1, 9, 26, 1]
>>> while len(tmp) > 1:
... tmp = [i+j for i,j in zip(tmp, tmp[1:])]
...
>>> tmp.pop()
179
Pythonでリスト1個ずらしのループは以下の方法がよく使われます。
>>> L = [16, 1, 9, 26, 1]
>>> for i,j in zip(L, L[1:]):
... print(i+j)
...
17
10
35
27
これを内包表記にします
>>> tmp = [i+j for i,j in zip(L, L[1:])]
>>> tmp
[17, 10, 35, 27]
これを繰り返し実行します
>>> tmp = [i+j for i,j in zip(tmp, tmp[1:])]
>>> tmp
[27, 45, 62]
>>> tmp = [i+j for i,j in zip(tmp, tmp[1:])]
>>> tmp
[72, 107]
>>> tmp = [i+j for i,j in zip(tmp, tmp[1:])]
>>> tmp
[179]
繰り返しは最後1個になるまで行うので、whileで書きます
>>> tmp = L
>>> tmp
[16, 1, 9, 26, 1]
>>> while len(tmp) > 1:
... tmp = [i+j for i,j in zip(tmp, tmp[1:])]
...
>>> tmp
[179]