How can I skip value and sum until meet a criteria in array python?

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

How can I skip value and sum until meet a criteria in array python?