kyu_6.encrypt_this package

Submodules

kyu_6.encrypt_this.solution module

kyu_6.encrypt_this.solution.encrypt_this(text: str) → str[source]
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

secret messages which can be deciphered by the “Decipher this!” kata

kyu_6.encrypt_this.test_encrypt_this module

class kyu_6.encrypt_this.test_encrypt_this.EncryptThisTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Testing encrypt_this function

test_encrypt_this()[source]

Testing encrypt_this function :param self: :return:

Module contents