text: import random
  from tkinter import *
  
  def zar():
      your_guess = textbox1.get()
      num_by_dice = random.randrange(1, 6, 1)
      print(num_by_dice)
      textbox2['bg'] ="yellow"
      textbox2['fg'] = "blue"
      textbox2['text'] = num_by_dice
      return your_guess, num_by_dice
  
  window = Tk()
  window.geometry("500x200")
  
  label1 = Label(text = "Tahmininiz ?")
  label1.place(x=30, y=20)
  textbox1 = Entry(text = "")
  textbox1.place(x=150, y=20, width = 200, height = 25)
  textbox1["justify"] =["center"]
  textbox1.focus()
  
  
  
  textbox2=Message(text="")
  textbox2.place(x=150, y=50, width=200, height=25)
  textbox2["bg"]="white"
  textbox2["fg"]="black"
  
  button1 = Button(text = "Zar At", command = zar)
  button1.place(x=30, y=50, width=120, height =25)
  
  your_guess, num_by_dice = zar()
  
  if your_guess == str(num_by_dice):
      label2 = Label(text = "Dogru bir tahmin yaptiniz")
      label2.place(x=150, y=80)
  
  window.mainloop()