From 15115b4c52bfda0d1cca9fa1155beecbb873ec35 Mon Sep 17 00:00:00 2001 From: yctct Date: Sun, 7 Jun 2026 08:59:04 +0200 Subject: First commit, add all files --- py00/ex7/ft_seed_inventory.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 py00/ex7/ft_seed_inventory.py (limited to 'py00/ex7/ft_seed_inventory.py') 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") -- cgit v1.2.3