Created
January 11, 2015 12:35
-
-
Save RX14/b96d79836fb17c010b40 to your computer and use it in GitHub Desktop.
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
| [i for i, ltr in enumerate(s) if ltr == ch] | |
| #same as | |
| list = [] | |
| for i, ltr in enumerate(s): | |
| if ltr == ch: | |
| list.add(i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment