python how to use a variable to trigger an event

Solutions on MaxInterview for python how to use a variable to trigger an event by the best coders in the world