from random import randint def de(): return randint(1, 6) def T(): compteur = 0 while de() != 6: compteur = compteur + 1 return compteur