repl.it
@TonySiu/

list_sum

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
numbers = [1, 5, 2, 6, 3, 28, 27, 54, 3]  # ==> 129

print(sum(numbers))

result = 0

for number in numbers:
  result = result + number
  
print(result)