#This program calculates the total of the values # in a list
def main() :
#Create a list
numbers = [2, 4, 6, 8, 10]
#Create a variable to use as an accumulator
total = 0
#Calculate the total of the list elements
for value in numbers :
total += value
#Display the total of the list elements
print('The total of the elements is', total)
#Call the main functions
main()
I1RoaXMgcHJvZ3JhbSBjYWxjdWxhdGVzIHRoZSB0b3RhbCBvZiB0aGUgdmFsdWVzICMgaW4gYSBsaXN0CgpkZWYgbWFpbigpIDoKI0NyZWF0ZSBhIGxpc3QKCW51bWJlcnMgPSBbMiwgNCwgNiwgOCwgMTBdCiNDcmVhdGUgYSB2YXJpYWJsZSB0byB1c2UgYXMgYW4gYWNjdW11bGF0b3IKCXRvdGFsID0gMAojQ2FsY3VsYXRlIHRoZSB0b3RhbCBvZiB0aGUgbGlzdCBlbGVtZW50cwoJZm9yIHZhbHVlIGluIG51bWJlcnMgOgoJCXRvdGFsICs9IHZhbHVlCiNEaXNwbGF5IHRoZSB0b3RhbCBvZiB0aGUgbGlzdCBlbGVtZW50cwoJcHJpbnQoJ1RoZSB0b3RhbCBvZiB0aGUgZWxlbWVudHMgaXMnLCB0b3RhbCkKI0NhbGwgdGhlIG1haW4gZnVuY3Rpb25zIAptYWluKCk=