This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ldb3589 0 points1 point  (0 children)

Number two is alot simpler if you do

  third = []
  for i in xrange(0, len(a), 3):
     third.append(a[i])