Answer:
import random
def buildArray(a, n):
for i in range (n):
a.append(random.randint(10,99))
arr = []
def sumArray(a):
tot = 0
for i in range(len(a)):
tot = tot + a [i]
return tot
arr = []
numbers = int(input("How many values to add to the array:\\"))
buildArray(arr, numbers)
print(arr)
print("Total " + str(sumArray(arr)) )
Step-by-step explanation: