1#Python program to add all the array elements using the built-in function
2lst = []
3num = int(input("Enter the size of the array: "))
4print("Enter array elements: ")
5for n in range(num):
6 numbers = int(input())
7 lst.append(numbers)
8print("Sum:", sum(lst))
9