Created
December 11, 2013 15:22
-
-
Save mgrabovsky/7912279 to your computer and use it in GitHub Desktop.
Generate a sequence akin to 1, 2, 5, 10, 20, 50, ... Useful for log scales and such.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
([1, 2, 5][i % 3] * 10**(i // 3) for i in itertools.count(0)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment