kyu_6.decipher_this package

Submodules

kyu_6.decipher_this.solution module

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.solution.last_digit_index(word: str) → int[source]

kyu_6.decipher_this.test_decipher_this module

class kyu_6.decipher_this.test_decipher_this.DecipherThisTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Testing decipher_this function

test_decipher_this()[source]

Testing decipher_this function :param self: :return:

Module contents