numpy slice double colon stack overflow code example Example: numpy slice double colon stack overflow >>> a = [1,2,3,4,5,6,7,8,9] >>> a[::3] [1, 4, 7]