kyu_8.remove_first_and_last_character package

Submodules

kyu_8.remove_first_and_last_character.remove_char module

Solution for -> Remove First and Last Character.

Created by Egor Kostan. GitHub: https://github.com/ikostan

kyu_8.remove_first_and_last_character.remove_char.remove_char(s: str) str[source]

Remove the first and last characters of a string.

You’re given one parameter, the original string. You don’t have to worry with strings with less than two characters. :param s: str :return: str

kyu_8.remove_first_and_last_character.test_remove_char module

Test for -> Remove First and Last Character.

Created by Egor Kostan. GitHub: https://github.com/ikostan

class kyu_8.remove_first_and_last_character.test_remove_char.RemoveCharTestCase(methodName='runTest')[source]

Bases: TestCase

Testing remove_char function.

_classSetupFailed = False
_class_cleanups = []
test_remove_char()[source]

Test ‘remove_char’ function.

Should remove the first and last characters of a string. :return:

Module contents

Remove First and Last Character.