Dremendo Tag Line

Print the number series 1 3 6 using for loop in Python

for Loop - Question 5

In this question, we will see how to print the number series 1 3 6... in Python programming using for loop. To know more about for loop click on the for loop lesson.

Q5) Write a program in Python to print the number series given below using for loop.

1 3 6 10 15 21 28 36 45 55

Program

s=0
for i in range(1,11):
    s=s+i
    print(s,end=' ')

Output

1 3 6 10 15 21 28 36 45 55
video-poster