Solution is simple:
i = 0
total = 0
while i < len(my_list):
total += my_list[i]
average = total / len(my_list)
i += 1
solved Using a while loop instead of a for loop in Python [closed]
Solution is simple:
i = 0
total = 0
while i < len(my_list):
total += my_list[i]
average = total / len(my_list)
i += 1
solved Using a while loop instead of a for loop in Python [closed]