diff --git a/kyu_5/number_of_trailing_zeros_of_n/__init__.py b/kyu_5/number_of_trailing_zeros_of_n/__init__.py index e69de29bb2d..5166371459b 100644 --- a/kyu_5/number_of_trailing_zeros_of_n/__init__.py +++ b/kyu_5/number_of_trailing_zeros_of_n/__init__.py @@ -0,0 +1 @@ +"""Number of trailing zeros of N.""" diff --git a/kyu_5/number_of_trailing_zeros_of_n/test_zeros.py b/kyu_5/number_of_trailing_zeros_of_n/test_zeros.py index 8497849d22a..fc5f97bf087 100644 --- a/kyu_5/number_of_trailing_zeros_of_n/test_zeros.py +++ b/kyu_5/number_of_trailing_zeros_of_n/test_zeros.py @@ -1,5 +1,6 @@ """ -Test for -> Number of trailing zeros of N! +Test for -> Number of trailing zeros of N!. + Created by Egor Kostan. GitHub: https://github.com/ikostan """ @@ -27,12 +28,12 @@ name='Source/Kata') # pylint: enable-msg=R0801 class ZerosTestCase(unittest.TestCase): - """ - Testing zeros function - """ + """Testing zeros function.""" def test_zeros(self): """ + Testing zeros function with various test data. + Testing 'zeros' program that should calculate the number of trailing zeros in a factorial of a given number. :return: None diff --git a/kyu_5/number_of_trailing_zeros_of_n/zeros.py b/kyu_5/number_of_trailing_zeros_of_n/zeros.py index b80999fcce6..d8bab1d3ff5 100644 --- a/kyu_5/number_of_trailing_zeros_of_n/zeros.py +++ b/kyu_5/number_of_trailing_zeros_of_n/zeros.py @@ -1,5 +1,6 @@ """ -Solution for -> Number of trailing zeros of N! +Solution for -> Number of trailing zeros of N!. + Created by Egor Kostan. GitHub: https://github.com/ikostan """ @@ -7,8 +8,10 @@ def zeros(n) -> int: """ - A program that will calculate the number of - trailing zeros in a factorial of a given number. + zeros function. + + A program that calculate the number of trailing + zeros in a factorial of a given number. N! = 1 * 2 * 3 * ... * N