def main(): garden = Garden() flower1 = Flowers("yellow") flower2 = Flowers("blue") tree1 = Trees("purple") tree2 = Trees("orange") garden.add(flower1) garden.add(flower2) garden.add(tree1) garden.add(tree2) garden.describe_garden() garden.watering(40) garden.watering(70)
from tomate import Tomate from potato import Potato from concombre import Pickle from garden import Garden g = Garden() g.add(Tomate()) p = Pickle() p.grow(8) g.add(p) print(g.seed)
from plants import Flower, Tree from garden import Garden garden = Garden() garden.add(Flower("yellow")) garden.add(Flower("blue")) garden.add(Tree("purple")) garden.add(Tree("orange")) garden.garden_status() garden.water_plants(40) garden.garden_status() garden.water_plants(70) garden.garden_status()