import random while True: hod = random.randrange(0, 7) print("Hodili jsme", hod) if hod == 6: break print("Hotovo.")