"Sum of ten numbers: 10 numbers are given in the input. Read them and print their sum. Use as few variables as you can. " - Snackify python coding question

 

 

 


 

CODING QUESTION

10 numbers are given in the input. Read them and print their sum. Use as few variables as you can.


SOLUTION

sum=0
for i in range(10):
    sum+=int(input())
print(sum)

 

Input : 

0
1
2
3
4
5
6
7
8
9


Output : 

45