subject

Develop a python program which will convert english words into their pig latin form, as described below. the program will repeatedly prompt the user to enter a word. first convert the word to lower case. the word will be converted to pig latin using the following rules: a) if the word begins with a vowel, append “way” to the end of the word. b) if the word begins with a consonant, remove all consonants from the beginning of the word and append them to the end of the word. then, append “ay” to the end of the word. for example: "dog" becomes "ogday" "scratch" becomes "atchscray" "is" becomes "isway" "apple" becomes "appleway" "hello" becomes "ellohay" "a" becomes "away" the program will halt when the user enters “quit” (any combination of lower and upper case letters, such as “quit”, “quit” or “quit”). suggestions: a) use .lower() to change the word to lower case. b) how do you find the position of the first vowel

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:30
Im doing this last minute and literally none of my neighbors or people that my dad works with use excel so if anyone could me make up an example
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
What can a word user do with the customize ribbon dialog box? check all that apply. minimize the ribbon add a new tab to the ribbon remove a group from a tab add a group to a tab choose which styles appear choose which fonts appear choose tools to appear in a group
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Which of the following includes the three primary network access technologies? dsl, cable modem, broadband lan, wan, man voip, uc, iptv tcp/ip, ftp, dhcp
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
Selective is defined as paying attention to messages that are consistent with one’s attitudes and beliefs and ignoring messages that are inconsistent.
Answers: 1
You know the right answer?
Develop a python program which will convert english words into their pig latin form, as described be...
Questions
Questions on the website: 13722367