(sum of consecutive Numbers) using range(python) | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

(sum of consecutive Numbers) using range(python)

How can I solve the problem in the section (sum of consecutive Numbers) using range?

29th Sep 2021, 7:36 PM
Aydin
Aydin - avatar
2 Réponses
+ 3
Hint: receive the input, calculate with it the range and use a for loop for calculation the sum.
29th Sep 2021, 7:50 PM
JaScript
JaScript - avatar
+ 1
Okay thanks♥️. I will definitely try
29th Sep 2021, 7:55 PM
Aydin
Aydin - avatar