Write a for loop that sums the values 1 through end, inclusive. end is a variable cannot Use A Variable Called 'sum'
"end" to be 6, your code should print out the result:
which is 1 + 2 + 3 + 4 + 5 + 6.
do not include raw_input statements or define the variable end. so write your code in the following box assuming end is already defined.
MY CODE.. "end" variable is already defined, so cannot define it..
total = 0
index = 1
for i in index <= end:
index += 1