I know that the following breaks up a list and put it into two lists depending on whether an index is even or odd. But not sure how [n::2] for n in [1,0] works.
[[1,2,3,4,5][n::2] for n in [1, 0] ] [[2, 4], [1, 3, 5]]
Can you point me to post that explain and walk me through the logic behind it? Thank you.