addition of array in python with input

#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())
print("Sum:", sum(lst))

Here is what the above code is Doing:
1. We are taking the size of the array from the user.
2. Then we are taking the array elements from the user.
3. Finally, we are printing the sum of the array elements using the sum() function.