I need help with code

I’m new to coding and i need help on python…

from tkinter import *
  
master = Tk()

master.title("Calculator")

#Labels
Label(master, text="Number 1:").grid(row=0, column=0)
Label(master, text="Number 2:").grid(row=1, column=0)
Label(master, text="Operator:").grid(row=2, column=0)

#Enter
num1 = Entry(master).grid(row=0, column=1)
num2 = Entry(master).grid(row=1, column=1)
operator = Entry(master).grid(row=2, column=1)
enter = Button(master, text="Enter").grid(row=3, column=1)


timess = (num1 *  num2)
minus = (num1 -  num2)
divide = (num1 /  num2)
plus = (num1 +  num2)



if enter == true:
    if operator == "*":
        return(times)
    if operator == "-":
        return(minus)
    if operator == "/":
        return(divide)
    if operator == "+":
        return(plus)
     
    
master.mainloop()

Your program doesn’t run. What are you trying to achieve?