🔥
0
0 XP
Lv.1 Beginner
Log In
Home
/
Python
/
Getting Started
/
For Loops
/
Sum 1 To N
/
Exercise
Sum 1 to N
Read a number N, then print the sum of all numbers from 1 to N.
Example:
Input:
text
5
Output:
text
15
💡
Hints
?
Hint 1
Reveal (-5 XP)
🔒
Hint 2
🔒
Hint 3
python
Reset
9
1
▶ Run
Visualize
✓ Submit
← Fix the Range
Letter Counter →