mirror of
https://github.com/DavidGailleton/42-Piscine_Python.git
synced 2026-01-27 09:11:57 +00:00
10 lines
430 B
Python
10 lines
430 B
Python
def ft_seed_inventory(seed_type: str, quantity: int, unit: str) -> None:
|
|
if unit == "packets":
|
|
print(seed_type.capitalize(), "seeds:", quantity, unit, "available")
|
|
elif unit == "grams":
|
|
print(seed_type.capitalize(), "seeds:", quantity, unit, "total")
|
|
elif unit == "area":
|
|
print(seed_type.capitalize(), "seeds:", "covers", quantity, "square meters")
|
|
else:
|
|
print("Unknown unit type")
|