kyu_6.encrypt_this package
Submodules
kyu_6.encrypt_this.solution module
Solution for -> Encrypt this!.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- kyu_6.encrypt_this.solution.encrypt_this(text: str) str[source]
Encrypt this.
- Encrypts each word in the message using the following rules:
The first letter needs to be converted to its ASCII code.
The second letter needs to be switched with the last letter
Keepin’ it simple: There are no special characters in input.
- Parameters:
text – a string containing space separated words
- Returns:
messages which can be deciphered by the “Decipher this!”
kyu_6.encrypt_this.test_encrypt_this module
Solution for -> Encrypt this!.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- class kyu_6.encrypt_this.test_encrypt_this.EncryptThisTestCase(methodName='runTest')[source]
Bases:
TestCaseTesting encrypt_this function.
- _classSetupFailed = False
- _class_cleanups = []
- test_encrypt_this = None
- test_encrypt_this_0_(**kw)
Testing encrypt_this function [with text=’’, expected=’’].
- Parameters:
self
- Returns:
- test_encrypt_this_1_Hello(**kw)
Testing encrypt_this function [with text=’Hello’, expected=’72olle’].
- Parameters:
self
- Returns:
- test_encrypt_this_2_good(**kw)
Testing encrypt_this function [with text=’good’, expected=’103doo’].
- Parameters:
self
- Returns:
- test_encrypt_this_3_hello_world(**kw)
Testing encrypt_this function [with text=’hello world’, expected=’104olle 119drlo’].
- Parameters:
self
- Returns:
- test_encrypt_this_4_A_wise_old_owl_lived_in_an_oak(**kw)
Testing encrypt_this function [with text=’A wise old owl lived in an oak’, expected=’65 119esi 111dl 111lw 108dvei 105n 97n 111ka’].
- Parameters:
self
- Returns:
- test_encrypt_this_5_The_more_he_saw_the_less_he_spoke(**kw)
Testing encrypt_this function [with text=’The more he saw the less he spoke’, expected=’84eh 109ero 104e 115wa 116eh 108sse 104e 115eokp’].
- Parameters:
self
- Returns:
- test_encrypt_this_6_The_less_he_spoke_the_more_he_heard(**kw)
Testing encrypt_this function [with text=’The less he spoke the more he heard’, expected=’84eh 108sse 104e 115eokp 116eh 109ero 104e 104dare’].
- Parameters:
self
- Returns:
- test_encrypt_this_7_Why_can_we_not_all_be_like_that_wise_old_bird(**kw)
Testing encrypt_this function [with text=’Why can we not all be like that wise old bird’, expected=’87yh 99na 119e 110to 97ll 98e 108eki 116tah 119esi 111dl 98dri’].
- Parameters:
self
- Returns:
- test_encrypt_this_8_Thank_you_Piotr_for_all_your_help(**kw)
Testing encrypt_this function [with text=’Thank you Piotr for all your help’, expected=’84kanh 121uo 80roti 102ro 97ll 121ruo 104ple’].
- Parameters:
self
- Returns:
Module contents
Encrypt this.