Sum of Consecutive Numbers help?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Sum of Consecutive Numbers help??

I am almost done with the python beginner course, and everything is going well, but I have gone over this python course many times to see if I’m missing anything and I can’t find the answer to the Sum of Consecutive Numbers problem. Here’s what I have so far: https://code.sololearn.com/cCffaK2D7hCB/?ref=app

17th Apr 2022, 3:16 AM
Jesse macAlpin
Jesse macAlpin - avatar
3 Answers
+ 2
print(sum(list(x)))
17th Apr 2022, 3:43 AM
A͢J
A͢J - avatar
+ 2
Thank you
17th Apr 2022, 3:45 AM
Jesse macAlpin
Jesse macAlpin - avatar
0
I am so stupid
17th Apr 2022, 3:45 AM
Jesse macAlpin
Jesse macAlpin - avatar