Question: Lists Exercise 3 Problem Write a program that takes a list called numbers that contains integers in a sequence ( you can assume the sequence

Lists Exercise 3
Problem
Write a program that takes a list called numbers that contains integers in a sequence (you can assume the sequence is always increasing by 1 for successive numbers). Your program should add the next two numbers in the sequence, and then print the list.
The input prompt should be
Don't forget that the input will come in as a single string; you will have to do what you need to do to get it to be a list of integers.
Expected Output
If numbers =[1,2,3,4] then you will print 1,2,3,4,5,6
If numbers =[-5,-4,-3,-2] then you will print ,0]
If numbers =[3,4,5,6,7] then you will print
 Lists Exercise 3 Problem Write a program that takes a list

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!