What do I add to result if using the range( ) method?
If you chose to write your loop with the
range() method, you’ll need to access your list items with the current number in your range. In the code below,
i holds the value of the current range value for our loop and we use that to access an index in our list.
for i in range(len(some_list)): print i # This will print a number, starting at 0, going up to the list length result += some_list[i] # Access the current value in our list