Daily Challenge (95 Part Series)
The goal of today's challenge is to translate English into Pig Latin. This challenge comes from user2505876 on CodeWars.
Write a function that moves the first letter of each word to the end of the word, then add
"ay". Leave punctuation untouched.
pig_it('Pig latin is cool') # igPay atinlay siay oolcay
pig_it('Hello world !') # elloHay orldway !
This one is somewhat tricky. I bet it would be even harder to turn Pig Latin back to English, I'd love to see someone try it~!
Oodgay ucklay, appyhay odingcay!
Want to propose a challenge for a future post? Email email@example.com with your suggestions!