Envoyer un Dalton au tableau.
# Type your text here from random import choice n = 1 dalton = ["Tymeo", "Noham", "Louis", "Chloe", "Coralie", "Stevan", "Jade", "Antoine", "Andrea", "Talia", "Killian", "Lucas", "Leo", "Shaun", "Ewenn", "Esteyban", "Redwan", "Louan", "Pierre-Alexandre", "Jonathan", "Elise", "Mliha"] 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)