Created
May 1, 2015 16:19
-
-
Save p-warner/4aa371f201e1aa9802bc 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 main(): | |
(string, result) = (input(), '') | |
doubleMe = list('bcdfghjklmnpqrstvwxzBCDFGHJKLMNPQRSTVWXZ') | |
for char in string: | |
try: | |
doubleMe.index(char) | |
result += char + 'o' +char.lower() | |
except Exception: | |
result += char | |
print(result) | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment