Ask Question
30 August, 15:57

Write a python program that requests a word (with lowercase letters) as input and translates the word into pig latin. The rules for translating a word into pig latin are as follows: a. If the word begins with a consonant, move the first letter to the end of the word and add ay. For instance, chip becomes hipcay. b. If the word begins with a vowel, add way to the end of the word. For instance, else becomes elseway.

+5
Answers (2)
  1. 30 August, 18:48
    0
    Answer and Explanation:

    X = input ("Enter input word to be translated to pig latin: ")

    # If the word begins with a vowel, add way to the end of the word

    if X[0] = = "a" or "e" or "i" or "o" or "u":

    print (X + "way")

    #the other condition

    #If the word begins with a consonant, move the first letter to the end of the word and add ay

    else:

    print (X[1:] + X[0] + 'ay')
  2. 30 August, 19:10
    0
    Answer:ogbef
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a python program that requests a word (with lowercase letters) as input and translates the word into pig latin. The rules for ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers