5-ое задание | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

5-ое задание

Нет пояснений как считать сумму. А как определить верхнюю границу (n+1) я и так знаю There is no explanation of how to calculate the amount. And how to determine the upper bound (n 1), I already know https://code.sololearn.com/crNhTr06TK9Q/?ref=app

28th Jul 2021, 8:21 AM
Alex Voronin
Alex Voronin - avatar
2 Answers
+ 4
You have to indent every time you use a loop or decision statements. Because, python is very sensitive about indenting. for i in range(0,N+1): count = count+i i=i+1 print(count)
28th Jul 2021, 8:31 AM
Simba
Simba - avatar
+ 1
Thanks
28th Jul 2021, 9:48 AM
Alex Voronin
Alex Voronin - avatar