Create new list by taking first item from first list, and last item from second list

Viewed 702

How do I loop through my 2 lists so that I can use

a=[1,2,3,8,12]
b=[2,6,4,5,6]

to get

[1,6,2,5,3,8,6,12,2]

OR use

d=[a,b,c,d]
e=[w,x,y,z]

to get

[a,z,b,y,c,x,d,w]

(1st element from 1st list, last element from 2nd list)
(2nd element from 1st list, 2nd to last element from 2nd list)

4 Answers
Related