Created
April 18, 2016 11:30
-
-
Save valtoni/af83ddc63def2dcac210447b3e2869b6 to your computer and use it in GitHub Desktop.
Do not repeat chars in python
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
| word = raw_input() | |
| reduced_word = ''.join( | |
| [char for index, char in enumerate(word) if char not in word[0:index]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment