You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
528 B
24 lines
528 B
2 years ago
|
"""
|
||
|
Lumache - Python library for cooks and food lovers.
|
||
|
"""
|
||
|
|
||
|
__version__ = "0.1.0"
|
||
|
|
||
|
|
||
|
class InvalidKindError(Exception):
|
||
|
"""Raised if the kind is invalid."""
|
||
|
pass
|
||
|
|
||
|
|
||
|
def get_random_ingredients(kind=None):
|
||
|
"""
|
||
|
Return a list of random ingredients as strings.
|
||
|
|
||
|
:param kind: Optional "kind" of ingredients.
|
||
|
:type kind: list[str] or None
|
||
|
:raise lumache.InvalidKindError: If the kind is invalid.
|
||
|
:return: The ingredients list.
|
||
|
:rtype: list[str]
|
||
|
"""
|
||
|
return ["shells", "gorgonzola", "parsley"]
|