#!/usr/bin/env python # -*- coding: utf-8 -*- import random with open('poeme', 'r') as tete: poeme = tete.read() article = ["la", "le", "Un", "Les" ] nom = ["voiture", "pied", "ceval", "ame", "vie", "flux", "nuit", "ciel", "Je", "tout", "j'", "Il", "jour", "oiseaux" ] verbe = ["bouge", "crisse", "etait", "est", "suis", "aime", "saigne", "va", "leve", "chantent"] complement = ["rose", "cosmique", "loin", "gris", "hauteur", "peu", "tot" ] print("Combien de vers souhaites tu génerer?") nombre = int(input()) for compteur in range (0,nombre): print(random.choice(article) + " " + random.choice(nom)+ " " + random.choice(verbe)+ " " + random.choice(complement))