Westonci.ca is the best place to get answers to your questions, provided by a community of experienced and knowledgeable experts. Discover in-depth answers to your questions from a wide network of experts on our user-friendly Q&A platform. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.
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
Thanks for stopping by. We are committed to providing the best answers for all your questions. See you again soon. We hope our answers were useful. Return anytime for more information and answers to any other questions you have. Find reliable answers at Westonci.ca. Visit us again for the latest updates and expert advice.