Calculate the sum of numbers from 1 to 10

 sum = 0

for i in range(1, 11):

    sum += i

print("The sum is", sum)


Comments

Popular posts from this blog

Hello World Python Code with Explanation

Addition of Two numbers in Python

Iris Flowers Classification ML Project with Code