Pig Latin "Translator" 06-24-2014, 11:00 PM
#1
Yes, it's super simple. Yes, even I can make it in under 10 minutes. But hey, it's my first python program! Enjoy!
(Only words with single words, not sentences!)
If you aren't familiar with pig Latin, it works as follows:
Original word: derp
what pig Latin does:
1. ..erp
2. erpd
3. erpday
So:
derp --> erpday
(Made in a lesson from Codeacademy. Awesome site. (you can also use it as an online editor if you're too lazy to set it up))
2nd version (can process sentences) creds to @Snipa
(Only words with single words, not sentences!)
If you aren't familiar with pig Latin, it works as follows:
Original word: derp
what pig Latin does:
1. ..erp
2. erpd
3. erpday
So:
derp --> erpday
(Made in a lesson from Codeacademy. Awesome site. (you can also use it as an online editor if you're too lazy to set it up))
Code:
suffix = "ay"
original = raw_input("Enter a word:")
if len(original) > 0 and original.isalpha():
word = original.lower()
first = word[0]
newword = word[1:] + first + suffix
print newword2nd version (can process sentences) creds to @Snipa
Code:
suffix = "ay"
original = input("Enter your text:")
text = original.lower().split()
for word in text:
print(word[1:] + word[0] + suffix)It's often the outcasts, the iconoclasts ... those who have the least to lose because they
don't have much in the first place, who feel the new currents and ride them the farthest.
don't have much in the first place, who feel the new currents and ride them the farthest.

















![[+]](https://sinister.li/images/modern/collapse_collapsed.png)

![[Image: fa00a00749.jpg]](http://puu.sh/aAFI1/fa00a00749.jpg)
![[Image: OilyCostlyEwe.gif]](http://fat.gfycat.com/OilyCostlyEwe.gif)