Envoyer un Dalton au tableau.
from random import choice n = 3 dalton = ["Raphael", "Tom", "Nathan", "Ewen F.", "Julien", "Gabriel", "Killian", "Aldo", "Camelia", "Valentin", "Ewen M.", "Keran", "Pierre-Alexandre", "Jonathan", "Louis" ] choisis = [] memoire = [] while n > 0: hasard = choice(dalton) if hasard in choisis: pass else: choisis.append(hasard) memoire.append(hasard) n = n - 1 if len(choisis) == len(dalton): choisis = [] print(memoire)