Ask Question

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.

+3
Answers (2)
  1. 9 October, 04:22
    0
    Answer:ogbef
  2. 9 October, 04:30
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers