Respuesta :
Answer:
import random
def buildArray():
amount = int(input("How many values to add to the array: "))
array = []
for i in range(amount):
array.append(random.randint(10, 99))
return array
array = buildArray()
print(array)
def sumArray(array):
return sum(array)
sum_array = sumArray(array)
print("The total is: ", sum_array)
Explanation:
this gave me 80%
In this exercise we have to use the knowledge of computational language in python to write the code.
We have the code in the attached image.
The code in python can be found as:
import random
def buildArray():
amount = int(input("How many values to add to the array: "))
array = []
for i in range(amount):
array.append(random.randint(10, 99))
return array
array = buildArray()
print(array)
def sumArray(array):
return sum(array)
sum_array = sumArray(array)
print("The total is: ", sum_array)
See more about python at brainly.com/question/26104476

