- 3
how to calculate a sum of indicies in a range (1,N)
in python
3 ответов
+ 3
Easy. Sum of integers from 1-n is given by:
S = { n(n+1) } / 2
If you want the loop variation, then you're going to have to do that yourself, or at least show an attempt.
0
Is this lesson/ project 36 of Python for Beginners?
If you need help with your approach, please show your code attempt here.
0
Jay Matthews The list-typecast isn't needed, I guess.