This program sums a range of numbers given by the user. It’s not inclusive because the range function doesn’t include the last number of said range, as in, for example, if I wanted my range to be from 1 to 10 I would need to write it as range (1, 11), so it would leave out the number 11 and only take those 10 integers i wanted to include in the first place.
*Note: As for the part of the code that says s += i, i learnt it means the same as saying s = s + i so it’s sort of a shortcut for the part of the for statement that does the actual loop.