```
given_list3 = [7, 5, 4, 4, 3, 1, -2, -3, -5, -7]
total7 = 0
i = 0
while i <= len(given_list3) and given_list3[i] <= 0:
    total7 += givenlist3[i]
    i += 1
print(total7)

```

The code is producing a result of 0, and I want to to result in: -2 + -3 + -5 + -7 = -17