Question: In this assignment, initialize a list in the program by assigning values rather than using input to supply the values to a list. The program
In this assignment, initialize a list in the program by assigning values rather than using input to supply the values to a list. The program must still be general for any list that complies with the question specification. Note, the TAs may use list values that are different from the sample solutions below when they test your program
Write a python program that initializes a list of integers called sumList such as the one below. Your program will then print the sum of the numbers in that list. You should use a loop to traverse the list and the list size may vary when your code is being tested by the TAs.
For example, the list of numbers can be initialized as follows:
sumList = [2,-1,4,17]
Sample run:
The sum of your numbers is 22
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
