📅  最后修改于: 2022-03-11 14:45:45.016000             🧑  作者: Mango
#Python program to add all the array elements using the built-in function
lst = []
num = int(input("Enter the size of the array: "))
print("Enter array elements: ")
for n in range(num):
numbers = int(input())
lst.append(numbers)
print("Sum:", sum(lst))