Skip to content

Instantly share code, notes, and snippets.

@lvidarte
Last active December 20, 2015 00:09
Show Gist options
  • Save lvidarte/6039281 to your computer and use it in GitHub Desktop.
Save lvidarte/6039281 to your computer and use it in GitHub Desktop.
Range version for float steps
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