У меня есть этот код:
Код: Выделить всё
def delta(i, x):
if i < listLen:
x = i + 1
print(toList[i])
delta_i = abs(toList[i] - toList[x])
print(" )" + delta_i)
i += 1
return False
else:
return True
Надеюсь, кто-нибудь меня просветит!
Подробнее здесь: https://stackoverflow.com/questions/783 ... -in-python