Question: Create a python program that defines a list: a=[1,3,5,7,9] allow the user of the code to put in a value and a location in the

 Create a python program that defines a list: a=[1,3,5,7,9] allow the

Create a python program that defines a list: a=[1,3,5,7,9] allow the user of the code to put in a value and a location in the list to put the value. Print out: - the original list - the new list - the sum of all of the elements in the new list Here's an example of what I want: >>> \%Run p2.py The original list is: [1,3,5,7,9] what number do you want to insert: -1 what position should we put it : 1 The new list is: [1,1,3,5,7,9] the sum of this new list is: 24

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!