from random import randint n , s = 0 , 0 while s == 0: e = randint(1,6) if e == 6: s += 1 n += 1 print(n)