Created
May 9, 2016 20:58
-
-
Save harlowja/ff81e1497498edba8aef111121241882 to your computer and use it in GitHub Desktop.
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
>>> def reversed_range(source, starts_at, ends_at): | |
... while starts_at >= ends_at: | |
... yield source[starts_at] | |
... starts_at -= 1 | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment