Welcome to Westonci.ca, where your questions are met with accurate answers from a community of experts and enthusiasts. Connect with a community of experts ready to help you find solutions to your questions quickly and accurately. Get quick and reliable solutions to your questions from a community of experienced experts on our platform.
Sagot :
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
We appreciate your visit. Our platform is always here to offer accurate and reliable answers. Return anytime. We hope you found what you were looking for. Feel free to revisit us for more answers and updated information. Westonci.ca is here to provide the answers you seek. Return often for more expert solutions.