Created
June 15, 2017 13:15
-
-
Save riyaj8888/459a03c19225da84494b226ebb92bfbe to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#input is string of word | |
word=input('enter word = ') | |
l=['a','e', 'i', 'o' ,'u'] | |
i=0 | |
while i< len(word): | |
if word[i] in l: | |
#print(i) | |
pig_latin_word=word[i:]+word[:i]+'ay' | |
print(pig_latin_word) | |
break | |
elif word[0] in l: | |
print('word begins with vovewls') | |
y=word+'yay' | |
print(y) | |
i=i+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment