mirror of
https://github.com/DavidGailleton/42-Piscine_Python.git
synced 2026-03-13 20:56:54 +01:00
FIX: 00
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
def ft_count_harvest_recursive(x=-1):
|
def ft_count_harvest_recursive(x: int = -1):
|
||||||
if x < 0:
|
if x < 0:
|
||||||
print("Days until harvest:", end=" ")
|
print("Days until harvest:", end=" ")
|
||||||
x = int(input())
|
x = int(input())
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ def ft_seed_inventory(seed_type: str, quantity: int, unit: str) -> None:
|
|||||||
elif unit == "grams":
|
elif unit == "grams":
|
||||||
print(seed_type.capitalize(), "seeds:", quantity, unit, "total")
|
print(seed_type.capitalize(), "seeds:", quantity, unit, "total")
|
||||||
elif unit == "area":
|
elif unit == "area":
|
||||||
print(seed_type.capitalize(), "seeds:", "covers", quantity, "square meters")
|
print(seed_type.capitalize(), "seeds:", "covers",
|
||||||
|
quantity, "square meters")
|
||||||
else:
|
else:
|
||||||
print("Unknown unit type")
|
print("Unknown unit type")
|
||||||
|
|||||||
Reference in New Issue
Block a user