Usage
Installation
To use math-lib, first install it using pip:
(.venv) $ pip install math-lib
Creating recipes
To retrieve a list of random ingredients,
you can use the math-lib.get_random_ingredients()
function:
The kind
parameter should be either "meat"
, "fish"
,
or "veggies"
. Otherwise, math-lib.get_random_ingredients()
will raise an exception.
For example:
>>> import math-lib
>>> math-lib.get_random_ingredients()
['shells', 'gorgonzola', 'parsley']