kyu_7.simple_fun_152 package¶
Submodules¶
kyu_7.simple_fun_152.invite_more_women module¶
-
kyu_7.simple_fun_152.invite_more_women.
invite_more_women
(arr: list) → bool[source]¶ Arthur wants to make sure that there are at least as many women as men at this year’s party. He gave you a list of integers of all the party goers.
Arthur needs you to return true if he needs to invite more women or false if he is all set.
An array representing the genders of the attendees, where -1 represents women and 1 represents men. :param arr: :return:
kyu_7.simple_fun_152.test_invite_more_women module¶
-
class
kyu_7.simple_fun_152.test_invite_more_women.
InviteMoreWomenTestCase
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
Simple Fun #152: Invite More Women? Testing invite_more_women function