30. Python Program to Read Ten numbers and Print their Sum.
How does this program work?
- This program is used to read ten numbers and print their sum using Python.
Here is the code
a = (1,2,3,4,5,6,7,8,9,10)
i = 0
sum = 0
#For loop to perform addition of given numbers
for i in a:
if i>0:
sum+= i;
print("Sum : ",sum)