Last active
December 20, 2015 00:09
-
-
Save lvidarte/6039281 to your computer and use it in GitHub Desktop.
Range version for float steps
This file contains hidden or 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
def drange(start, stop, step=1): | |
r = start | |
while r < stop: | |
yield r | |
r += step |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment