kyu_4.strip_comments package

Submodules

kyu_4.strip_comments.solution module

Solution for -> Strip Comments.

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

kyu_4.strip_comments.solution.solution(string: str, markers: list) str[source]

Strip comments solution.

The solution strips all text that follows any of a set of comment markers passed in. Any whitespace at the end of the line will be stripped out as well.

Parameters:
  • string – str

  • markers – list

Returns:

str

kyu_4.strip_comments.test_solution module

Test for -> Strip Comments.

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

class kyu_4.strip_comments.test_solution.SolutionTestCase(methodName='runTest')[source]

Bases: TestCase

Testing solution for Strip Comments problem.

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

Testing ‘solution’ function.

The solution should strips all text that follows any of a set of comment markers passed in. Any whitespace at the end of the line should also be stripped out. :return:

Module contents

Strip Comments package.