numbers = [2,4,5,6,7,5]
total = 0
for num in numbers:
total += num
print("The total numbers is:", total)
Write a program to calculate the sum of all elements in a list using a for loop using Python
Login to like
Posted By:

UmairMehmood
11 days ago
Join the conversation!
Login to Comment