Ask Question
2 September, 06:11

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.

+1
Answers (2)
  1. 2 September, 07:30
    0
    Answer:ogbef
  2. 2 September, 07:33
    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')
Know the Answer?
Not Sure About the Answer?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers