kyu_7.pull_your_words_together_man package
Submodules
kyu_7.pull_your_words_together_man.sentencify module
Solution for -> Pull your words together, man!.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- kyu_7.pull_your_words_together_man.sentencify.sentencify(words: list) str[source]
‘sentencify’ function.
The function should: 1. Capitalise the first letter of the first word. 2. Add a period (.) to the end of the sentence. 3. Join the words into a complete string, with spaces. 4. Do no other manipulation on the words.
- Parameters:
words – list
- Returns:
str
kyu_7.pull_your_words_together_man.test_sentencify module
Test for -> Pull your words together, man!.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- class kyu_7.pull_your_words_together_man.test_sentencify.SentencifyTestCase(methodName='runTest')[source]
Bases:
TestCaseTesting ‘sentencify’ function.
- _classSetupFailed = False
- _class_cleanups = []
- test_sentencify = None
- test_sentencify_0(**kw)
Testing ‘sentencify’ function with various test data [with words=[‘i’, ‘am’, ‘an’, ‘AI’], expected=’I am an AI.’].
The function should: 1. Capitalise the first letter of the first word. 2. Add a period (.) to the end of the sentence. 3. Join the words into a complete string, with spaces. 4. Do no other manipulation on the words. :return:
- test_sentencify_1(**kw)
Testing ‘sentencify’ function with various test data [with words=[‘yes’], expected=’Yes.’].
The function should: 1. Capitalise the first letter of the first word. 2. Add a period (.) to the end of the sentence. 3. Join the words into a complete string, with spaces. 4. Do no other manipulation on the words. :return:
- test_sentencify_2(**kw)
Testing ‘sentencify’ function with various test data [with words=[‘FIELDS’, ‘of’, ‘CORN’, ‘are’, ‘to’, ‘be’, ‘sown’], expected=’FIELDS of CORN are to be sown.’].
The function should: 1. Capitalise the first letter of the first word. 2. Add a period (.) to the end of the sentence. 3. Join the words into a complete string, with spaces. 4. Do no other manipulation on the words. :return:
- test_sentencify_3(**kw)
Testing ‘sentencify’ function with various test data [with words=[“i’m”, ‘afraid’, ‘I’, “can’t”, ‘let’, ‘you’, ‘do’, ‘that’], expected=”I’m afraid I can’t let you do that.”].
The function should: 1. Capitalise the first letter of the first word. 2. Add a period (.) to the end of the sentence. 3. Join the words into a complete string, with spaces. 4. Do no other manipulation on the words. :return:
Module contents
Pull your words together, man.