RE: [Python] Pig Latin Translator 02-03-2014, 04:05 PM
#9
(02-03-2014, 05:36 AM)Duubz Wrote: This didn't exactly work for me and it's probably my Python version so I did some fixes specified for 3 and onward when they make newer versions.
Code:#Probs to Sparks for creating original# original = input("Enter a word: ") pyg = 'ay' word = original.lower() first = original[0] new_word = original + pyg if len(original) > 0 and original.isalpha(): if first == 'a' or first == 'e' or first == 'i' or first == 'o' or first == 'u': print("Translated: " + new_word) else: new_word = original[1:] + original[0] + pyg print(new_word) else: print("You didn't type anything!!'")
Thanks for that! I see... I thought that bug that I had was to do with the program I was using... Thanks!
















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