2. Write a while loop that computes the sum of the numbers of the list one by one.
3. The loop should continue adding numbers until a negative number is found.
4. If there’s no negative number in the list, the loop continues until all the numbers of
the list have been summed
Right Answer:
integer_list = [4,8,25,4,69,2,78,-5,0,3,6]
index = 0
total = 0
while index < len(integer_list) and integer_list[index] >= 0:
total += integer_list[index]
index += 1
print(f"The sum is: {total}")