Amazing-Python-Scripts

Форк
0

README.md

Pig Latin Translator

A secret language formed from English by transferring the initial consonant or consonant cluster of each word to the end of the word and adding a vocalic syllable (usually /eɪ/): so pig Latin would be igpay atinlay

Rules

  1. If a word begins with a vowel, just as "yay" to the end. For example, "out" is translated into "outyay".
  2. If it begins with a consonant, then we take all consonants before the first vowel and we put them on the end of the word. For example, "which" is translated into "ichwhay".

How to run?

  • Run the script python piglatin.py
  • Enter a Sentence you need to translate to pig latin

Example sentence: hello fellas my name is Archana

Output

pigoutput

Author

Archana Gandhi

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.