summaryrefslogtreecommitdiff
path: root/py00/ex7/ft_seed_inventory.py
diff options
context:
space:
mode:
Diffstat (limited to 'py00/ex7/ft_seed_inventory.py')
-rw-r--r--py00/ex7/ft_seed_inventory.py10
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")