Created
August 8, 2014 08:41
-
-
Save gkze/e5b0df6418d352c6fb1d to your computer and use it in GitHub Desktop.
Pig latin
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 pig(string): | |
return ' '.join(map(lambda x: x + 'ay' if x in 'aeiou' else x[1:] + x[:1] + 'ay', string.split())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The most concise way?