kyu_8.formatting_decimal_places_0 package

Submodules

kyu_8.formatting_decimal_places_0.test_two_decimal_places module

class kyu_8.formatting_decimal_places_0.test_two_decimal_places.TwoDecimalPlacesTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Testing two_decimal_places function

test_two_decimal_places()[source]

Testing two_decimal_places function with various test inputs.

Each number should be formatted that it is rounded to two decimal places. You don’t need to check whether the input is a valid number because only valid numbers are used in the tests. :return:

kyu_8.formatting_decimal_places_0.two_decimal_places module

kyu_8.formatting_decimal_places_0.two_decimal_places.two_decimal_places(n)[source]

Each number should be formatted that it is rounded to two decimal places. You don’t need to check whether the input is a valid number because only valid numbers are used in the tests. :param n: :return:

Module contents