Question: Activity # 2 : Split list individual This program is meant to give you practice with lists and looping on them. Write a program named
Activity #: Split list individual
This program is meant to give you practice with lists and looping on them. Write a program named
splitlist.py that takes as input from the user one string of a sequence of integers, with each value
separated by a space. Have your program convert the input string to a list of integers, and determine
where to split the list so that the sum of the numbers in the left portion is equal to the sum of the
numbers in the right portion. If such a split can be made, print the contents of the left and right portions
of the list after the split along with their sum. You may NOT reorder the numbers; use them in the given
order. If the list cannot be split with equal sums, print a message to the screen according to the example
below. You may assume the user enters valid input, but it is an arbitrary number of whole numbers.
Note: You should use lists and loops when solving this problem. You may NOT use the sum function.
You may NOT use sympy or numpy
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
