kyu_5.simple_pig_latin package

Submodules

kyu_5.simple_pig_latin.pig_it module

kyu_5.simple_pig_latin.pig_it.pig_it(text: str) → str[source]

Move the first letter of each word to the end of it, then add “ay” to the end of the word. Leave punctuation marks untouched. :param text: :return:

kyu_5.simple_pig_latin.pig_it.word_processor(word: str, result: list) → None[source]

Processing a single word for the requested pattern :param word: :param result: :return:

kyu_5.simple_pig_latin.test_pig_it module

class kyu_5.simple_pig_latin.test_pig_it.PigItTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Testing pig_it function

test_pig_it()[source]

Testing pig_it function

The function should mpve the first letter of each word to the end of it, then add “ay” to the end of the word. Leave punctuation marks untouched. :return:

Module contents