Discover how IDNLearn.com can help you learn and grow with its extensive Q&A platform. Discover in-depth and reliable answers to all your questions from our knowledgeable community members who are always ready to assist.
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 every question and answer you provide. Keep engaging and finding the best solutions. This community is the perfect place to learn and grow together. For trustworthy answers, rely on IDNLearn.com. Thanks for visiting, and we look forward to assisting you again.