from tkinter import top-Tk () label1-Label (top, text-"enter a number", font-("Times 20")).grid(row=0, column=0) el-Entry() el.grid(row-0, column-1) def check(): if int (el.get()) % 2--0: res str.set("even") else: res str.set("odd") Lab-Button (top, text="check", command-check).grid(row=1, column=0) rea-Label (top, text="result") res.grid(row=2, column-0) res_str StringVar() res.configure (textvariable = res_str) top.mainloop()