How to make it work on codechef ide its correct perfectly

from tkinter import*
def openClicked():
print("open was clicked ")
def quitApplication():
quit()
root=Tk()
menu = Menu(root)
root.config(menu = menu)
subMenu=Menu(menu, tearoff=0)
menu.add_cascade(label = ‘File’,menu = subMenu)
subMenu.add_command(label=“open”,command=openClicked)
subMenu.add_separator()
subMenu.add_command(label=“quit” ,command=quitApplication)
subMenu2=Menu(menu,tearoff = 0)
menu.add_cascade(label= ‘edit’,menu=subMenu2)
subMenu2.add_command(label=‘undo’)
subMenu2.add_command(label=‘redo’)
labeltext=StringVar()
root.geometry(‘500x500’)
labeltext.set(‘label’)
label=Label(root,textvariable=labeltext).pack()
root.mainloop()