while sum if break

1
2
3
4
5
6
while k != 0:
c = k + sum(b[1:])
if c % 3 == 0:
break
k -= 1