Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [d, d+1, d+2, d+3]
- 1 2 3 4 5 6 7 8 9
- [d, x, d+1, x]
- [x,y,d,x,y,d+1]
- >>> import itertools
- >>> g = (digit for number in itertools.count(1) for digit in map(int, str(number)))
- >>> i=9+(22-10)*2 + 1; list(itertools.islice(g, i, i+len(digits)))
- [2, 2, 3, 2, 4]
Add Comment
Please, Sign In to add comment