# Kockadobás szimulátor: import random while True: szám=int(input("Gépelj be egy számot 1 és 6 között: ")) x = random.randint(1,6) print("Az én dobásom:",x) if szám == x: print("Eltaláltad!") option = input("Akarsz még próbálkozni? (i/n) ") if option == "n": break