I need a formula to iterate through list A and extract certain items and put into list B. I need to skip two items, extract the next three, skip two items, extract the next three, etc:

Qt Code:
  1. A = (34, 35, 40, 41, 42, 22, 34, 43, 44, 45, 65, 78, 46, 47, 48)
To copy to clipboard, switch view to plain text mode 

I want:
Qt Code:
  1. B = (40, 41, 42, 43, 44, 45, 46, 47, 48)
To copy to clipboard, switch view to plain text mode 

this is all I could get:
Qt Code:
  1. for i, val in enumerate(A):
  2. B = (
To copy to clipboard, switch view to plain text mode 


thanks