Education, Computer Science, Programming, Mathematics, Golden Ratio.
we set a variable sum to 0. range(1, 101) is a list of numbers from 1 through 100. In line 3, the syntax “for i in list” iterates, or goes through, every element in the list. In line 4, we add an integer to our running sum. In line 6, we print out the sum after summing from one through a hundred.