kyu_6.numericals_of_string package

Submodules

kyu_6.numericals_of_string.numericals module

Solution for -> Numericals of a String.

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

kyu_6.numericals_of_string.numericals.numericals(s: str) str[source]

Numericals function.

For each symbol in the string if it’s the first character occurrence, replace it with a ‘1’, else replace it with the amount of times you’ve already seen it. :param s: :return:

kyu_6.numericals_of_string.test_numericals module

Test for -> Numericals of a String.

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

class kyu_6.numericals_of_string.test_numericals.NumericalsTestCase(methodName='runTest')[source]

Bases: TestCase

Testing ‘numericals’ function.

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

Testing ‘numericals’ function with various test data.

Returns:

Module contents

Numericals of a String.