Write a program to find sum of elements in list
Topic: Write a program to find sum of elements in list
Solution
list1 = [11, 5, 17, 18, 23] total = sum(list1) print("Sum of all elements in given list: ", total)
List all Python Programs
Solution
list1 = [11, 5, 17, 18, 23] total = sum(list1) print("Sum of all elements in given list: ", total)