What will be the output of the following code snippet?

a = [1, 2, 3, 4, 5]
sum = 0
for ele in a:
sum += ele
print(sum)

Posted on by