I truly do not understand range and the whole ‘i’ thing. Can someone explain to me why/how to use it?
I just don’t understand what it does. Lamens terms are much appreciated
n = [3, 5, 7] def total(numbers): result = 0 for i in range(len(numbers)): result = numbers[i] + result return result