Oct-10-2016, 06:23 PM
(Oct-10-2016, 06:07 PM)EwH006 Wrote:(Oct-10-2016, 05:23 PM)ichabod801 Wrote:(Oct-10-2016, 05:14 PM)EwH006 Wrote: I'm trying to figure out how I replace the code I originally posted which adds "1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + = 55"
No, it doesn't. Run the code you posted and see what the output is.
Your making something out of nothing. Your being case sensitive about my damn question.
sum = 0
for count in range(0, 10, 1): #starting point, ending, loop update condition (alternate to figure out)
sum = sum + (count+1)
print((count+1), " + ", end = " ")
print(" = ", sum)
print("\n Add a series using WHILE loop")
It was a typo to begin with, pfft. Mekire