I'm new here pls help me with solving the problem of creating a program that can sum up the first n integer inputed using python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

I'm new here pls help me with solving the problem of creating a program that can sum up the first n integer inputed using python

Pls help

25th Dec 2021, 8:55 AM
Uka Princewill Iyk
2 Answers
+ 2
Use a for loop and remember to convert the input to integers before adding them. You may also want to review the lessons in Python for Beginners course on sololearn. When you show us your code, we can help you to solve it!
25th Dec 2021, 9:06 AM
Lisa
Lisa - avatar
+ 2
After viewing your profile, you haven't even started the Python course and has started asking these questions. I suggest you to complete the Python course (all three), so that you get an idea that how to code... Meanwhile, you will get many challenges there too (code coaches and projects).
25th Dec 2021, 9:15 AM
NEZ
NEZ - avatar