kyu_6.help_the_bookseller package

Submodules

kyu_6.help_the_bookseller.stock_list module

kyu_6.help_the_bookseller.stock_list.stock_list(listOfArt: list, listOfCat: list) → str[source]

You will be given a stocklist (e.g. : L) and a list of categories in capital letters e.g :

M = {“A”, “B”, “C”, “W”}

or

M = [“A”, “B”, “C”, “W”] or …

and your task is to find all the books of L with codes belonging to each category of M and to sum their quantity according to each category.

kyu_6.help_the_bookseller.test_stock_list module

class kyu_6.help_the_bookseller.test_stock_list.StockListTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Testing stock_list function

test_stock_list()[source]

Module contents