Using a for loop, write a python program to calculate the sum of numbers from 1 to 10 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Using a for loop, write a python program to calculate the sum of numbers from 1 to 10

17th Nov 2022, 7:36 PM
Ola Emmanuel
2 Answers
+ 3
If you need help with your code, please show it to us. If you have a question, please ask it directly.
17th Nov 2022, 8:13 PM
Lisa
Lisa - avatar
+ 1
Why do it with a loop when there's that sum() function? it's Pyrhon built-in for summing ranges and iterables.
18th Nov 2022, 4:16 AM
Ipang