Learn Python Code a Pig Latin Converter (PygLatin)

preview_player
Показать описание
Pig Latin takes the first consonant (or consonant cluster) of an English word, moves it to the end of the word and suffixes an ay, or if a word begins with a vowel you just add way to the end. For example, pig becomes igpay, banana becomes ananabay, and aadvark becomes aadvarkway.

Follow this tutorial to create a Pig Latin converter using Python.
Рекомендации по теме
Комментарии
Автор

Thank you this was great. Could you show writing the code for the words that begin with a vowel or direct me to a video for converting to pig latin

markrubenstein
Автор

how can I make the code works for sentences instead of words

eduardohuerta-mercado
Автор

I know i am late, but how do I remove a period off the end of the word, Then translate it to pigs latin, then add the period back onto the end after it is translated???

quackzsd
Автор

How would you do it with sentence and uppercase letters instead of word or lowercase?

aracelizaragoza
Автор

thank you so much! this was so much help :)

sandraleoww
Автор

The str.lower() line seems unnecessary

alext
Автор

Python dosent become ythonpay it becomes thonpyay

emanalomari
Автор

How do you take all the consonants before the first vowel and put them on the end?

TheSpicyTomato
welcome to shbcf.ru