kyu_6.decipher_this package
Submodules
kyu_6.decipher_this.solution module
Solution for -> Decipher this!.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- kyu_6.decipher_this.solution.decipher_this(string: str) str[source]
Given a secret message that you need to decipher.
- For each word:
the second and the last letter is switched (e.g. Hello becomes Holle)
the first letter is replaced by its character code (e.g. H becomes 72)
Note: there are no special characters used, only letters and spaces
- Parameters:
string
- Returns:
kyu_6.decipher_this.test_decipher_this module
Test for -> Decipher this!.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- class kyu_6.decipher_this.test_decipher_this.DecipherThisTestCase(methodName='runTest')[source]
Bases:
TestCaseTesting decipher_this function.
- _classSetupFailed = False
- _class_cleanups = []
- test_decipher_this = None
- test_decipher_this_0_(**kw)
Testing decipher_this function [with text=’’, expected=’’].
- Parameters:
self
- Returns:
- test_decipher_this_1_72olle_103doo_100ya(**kw)
Testing decipher_this function [with text=’72olle 103doo 100ya’, expected=’Hello good day’].
- Parameters:
self
- Returns:
- test_decipher_this_2_82yade_115te_103o(**kw)
Testing decipher_this function [with text=’82yade 115te 103o’, expected=’Ready set go’].
- Parameters:
self
- Returns:
- test_decipher_this_3_65_119esi_111dl_111lw_108dvei_105n_97n_111ka(**kw)
Testing decipher_this function [with text=’65 119esi 111dl 111lw 108dvei 105n 97n 111ka’, expected=’A wise old owl lived in an oak’].
- Parameters:
self
- Returns:
- test_decipher_this_4_84eh_109ero_104e_115wa_116eh_108sse_104e_115eokp(**kw)
Testing decipher_this function [with text=’84eh 109ero 104e 115wa 116eh 108sse 104e 115eokp’, expected=’The more he saw the less he spoke’].
- Parameters:
self
- Returns:
- test_decipher_this_5_84eh_108sse_104e_115eokp_116eh_109ero_104e_104dare(**kw)
Testing decipher_this function [with text=’84eh 108sse 104e 115eokp 116eh 109ero 104e 104dare’, expected=’The less he spoke the more he heard’].
- Parameters:
self
- Returns:
- test_decipher_this_6_87yh_99na_119e_110to_97ll_98e_108eki_116tah_119esi_111dl_98dri(**kw)
Testing decipher_this function [with text=’87yh 99na 119e 110to 97ll 98e 108eki 116tah 119esi 111dl 98dri’, expected=’Why can we not all be like that wise old bird’].
- Parameters:
self
- Returns:
- test_decipher_this_7_84kanh_121uo_80roti_102ro_97ll_121ruo_104ple(**kw)
Testing decipher_this function [with text=’84kanh 121uo 80roti 102ro 97ll 121ruo 104ple’, expected=’Thank you Piotr for all your help’].
- Parameters:
self
- Returns:
Module contents
Decipher this.