kyu_8.remove_first_and_last_character package

Submodules

kyu_8.remove_first_and_last_character.remove_char module

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

A function that removes 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: :return:

kyu_8.remove_first_and_last_character.test_remove_char module

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

Bases: unittest.case.TestCase

Testing remove_char function

test_remove_char()[source]

Test that ‘remove_char’ function removes the first and last characters of a string. :return:

Module contents