kyu_8.count_the_monkeys package

Submodules

kyu_8.count_the_monkeys.monkey_count module

kyu_8.count_the_monkeys.monkey_count.monkey_count(n: int) → list[source]

You take your son to the forest to see the monkeys. You know that there are a certain number there (n), but your son is too young to just appreciate the full number, he has to start counting them from 1.

As a good parent, you will sit and count with him. Given the number (n), populate an array with all numbers up to and including that number, but excluding zero. :param n: :return:

kyu_8.count_the_monkeys.test_monkey_count module

class kyu_8.count_the_monkeys.test_monkey_count.MonkeyCountTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Testing monkey_count function

test_monkey_count()[source]

Testing monkey_count function

You take your son to the forest to see the monkeys. You know that there are a certain number there (n), but your son is too young to just appreciate the full number, he has to start counting them from 1.

As a good parent, you will sit and count with him. Given the number (n), populate an array with all numbers up to and including that number, but excluding zero. :return:

Module contents