Skip to content

Instantly share code, notes, and snippets.

@gkze
Created August 8, 2014 08:41
Show Gist options
  • Save gkze/e5b0df6418d352c6fb1d to your computer and use it in GitHub Desktop.
Save gkze/e5b0df6418d352c6fb1d to your computer and use it in GitHub Desktop.
Pig latin
def pig(string):
return ' '.join(map(lambda x: x + 'ay' if x in 'aeiou' else x[1:] + x[:1] + 'ay', string.split()))
@gkze
Copy link
Author

gkze commented Aug 8, 2014

The most concise way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment