How can I sum the neighbor array and break with some greater than condition in python?

Eklenme Tarih 1 hour ago
Active 19
Görüntülenme 89
S

How can I sum the neighbor array and break with some greater than condition in python?