diff options
| author | yctct <yctct@yctct.com> | 2026-06-07 08:59:04 +0200 |
|---|---|---|
| committer | yctct <yctct@yctct.com> | 2026-06-07 08:59:04 +0200 |
| commit | 15115b4c52bfda0d1cca9fa1155beecbb873ec35 (patch) | |
| tree | b3f0975e63eb04dcba732a78ce9bd9abda8acf01 /py00/ex7 | |
First commit, add all files
Diffstat (limited to 'py00/ex7')
| -rw-r--r-- | py00/ex7/ft_seed_inventory.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/py00/ex7/ft_seed_inventory.py b/py00/ex7/ft_seed_inventory.py new file mode 100644 index 0000000..5c76e0e --- /dev/null +++ b/py00/ex7/ft_seed_inventory.py @@ -0,0 +1,10 @@ +def ft_seed_inventory(seed_type: str, quantity: int, unit: str) -> None: + seed_type = seed_type.capitalize() + if unit == "packets": + print(seed_type + " seeds: " + str(quantity) + " packets available") + elif unit == "grams": + print(seed_type + " seeds: " + str(quantity) + " grams total") + elif unit == "area": + print(seed_type + " seeds: covers " + str(quantity) + " square meters") + else: + print("Unknown unit type") |
