>>296
n = 3
seq = range(10)
for i in seq[0::n]:
print i
# 0
# 3
# 6
# 9