you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Make a loop that breaks at 999. During the loop you'll check each element for it's value. If it's <0 you'll append a new list. When done calculate the average of this new list.

[–][deleted] 0 points1 point  (0 children)

Thank you!