kyu_6.numericals_of_string package

Submodules

kyu_6.numericals_of_string.numericals module

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

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

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

Bases: unittest.case.TestCase

Testing ‘numericals’ function

test_numericals()[source]

Testing ‘numericals’ function :return:

Module contents