What is the most Pythonic way of splitting up a list A
into B
and C
such that B
is composed of the even-indexed elements of A
and C
is composed of the odd-indexed elements of A
?
e.g. A = [1, 3, 2, 6, 5, 7]
. Then B
should be [1, 2, 5]
and C
should be [3, 6, 7]
.