не понимаю почему ошибка
from typing import Tuple
def four_squares(k: int) -> Tuple[int, int, int, int]:
list=[]
for i in range(1, k+1):
if k==i**2:
return [i,0,0,0]
for i in range(1, k+1):
for j in range(i, k+1):
if k==i**2+j**2:
return [i, j,0,0]
for i in range(1, k+1):
for j in range(i, k+1):
for l in range(j, k+1):
if k==i**2+j**2+l**2:
return [i, j, l,0]
for i in range(1, k+1):
for j in range(i, k+1):
for l in range(j, k+1):
for m in range(l, k+1):
if k==i**2+j**2+l**2+m**2:
return [i, j, l, m]
for i in [0, 1, 17, 33, 215, 333, 2**12-3, 1234567890, 106369249365575352836589875696130383747]:
a, b, c, d = four_squares(i)
выдает ошибку:
Traceback (most recent call last):
File "<string>", line 25, in <module>
TypeError: cannot unpack non-iterable NoneType object