8.3 code practice edhesive PLEASE HELP AND HURRY
Write a program that uses an initializer list to store the following set of numbers in an array named nums. Then, print the array.

14 36 31 -2 11 -6

Sample Run
[14, 36, 31, -2, 11, -6]

ALSO I DONT NEED A SUM I NEED AN ARRAY

Respuesta :

Answer:

numbers = '14 36 31 -2 11 -6'

nums = numbers.split(' ')

for i in range(0, len(nums)):

  nums[i] = int(nums[i])

print(nums)

The program is an illustration of arrays and lists.

Arrays and lists are variables that are used to hold multiply values in one variable

The program in Python, where comments are used to explain each line is as follows:

#This gets input for the list of numbers

numbers = input()

#This splits the numbers into a list

numList = numbers.split(' ')

#This iterates through the list

for i in range(len(numList)):

   #This converts each element to an integer

   numList[i] = int(numList[i])

#This prints the list

print(numList)

Read more about Python lists at:

https://brainly.com/question/24941798