python tkinter listbox click event

main = Tk()

def clickEvent:
  #insert code that will execute here
  
lb = Listbox(main)
lb.bind('<>', clickEvent)

Here is what the above code is Doing:
1. It creates a Tkinter object called main.
2. It creates a function called clickEvent.
3. It creates a Listbox object called lb.
4. It binds the Listbox object to the clickEvent function.
5. It inserts code that will execute when the Listbox is clicked.