PYTHON: SUM OF ALL ELEMENTS IN LIST
SUM OF ALL ELEMENTS IN LIST
list = [12,8,10,15,5,26,4]
sum = 0
for i in list:
sum = sum + i
print(sum)
Answer
80
YouTube:
https://www.youtube.com/watch?v=J6aKKDnc0l4
Post a Comment