kyu_8.keep_up_the_hoop package

Submodules

kyu_8.keep_up_the_hoop.hoop_count module

Solution -> Keep up the hoop.

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

kyu_8.keep_up_the_hoop.hoop_count.hoop_count(n: int) str[source]

‘hoop_count’ function.

A program where Alex can input (n) how many times the hoop goes round, and it will return him an encouraging message :param n: int :return: str

kyu_8.keep_up_the_hoop.test_hoop_count module

Test -> Keep up the hoop.

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

class kyu_8.keep_up_the_hoop.test_hoop_count.HoopCountTestCase(methodName='runTest')[source]

Bases: TestCase

Testing hoop_count function.

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

Testing hoop_count function (negative).

Returns:

test_hoop_count_positive()[source]

Testing hoop_count function (positive).

Alex just got a new hula-hoop, he loves it but feels discouraged because his little brother is better than him

Write a program where Alex can input (n) how many times the hoop goes round and it will return him an encouraging message

  • 10 or more hoops, return “Great, now move on to tricks”.

  • Not 10 hoops, return “Keep at it until you get it”.

Returns:

Module contents

Keep up the hoop.