Question: please code this in PYTHON 2. [50 points) Design an algorithm that will take a list of numbers and partially reverse it, without making use

 please code this in PYTHON 2. [50 points) Design an algorithm
please code this in PYTHON

2. [50 points) Design an algorithm that will take a list of numbers and partially reverse it, without making use of a second list variable. Starting at each end, the alternating entries of the list should be swapped. (Your solution may not use python's reverse function or slicing.) Example of the algorithm: Input = [1,2,3,4,5,6,7,8] Output = [8, 2, 6, 4,5, 3, 7, 1] Input - (1,2,3,4,5,6,7,8,9] Output -19,2,7,4,5,6,3, 8,1] Input - [1,2] Output - (2.1)

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!