kyu_8.keep_up_the_hoop package¶
Submodules¶
kyu_8.keep_up_the_hoop.hoop_count module¶
kyu_8.keep_up_the_hoop.test_hoop_count module¶
-
class
kyu_8.keep_up_the_hoop.test_hoop_count.
HoopCountTestCase
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
Testing hoop_count function
-
test_hoop_count_positive
()[source]¶ Testing hoop_count function
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
If Alex gets 10 or more hoops, return the string “Great, now move on to tricks”.
If he doesn’t get 10 hoops, return the string “Keep at it until you get it”.
- Returns
-