how to check if two buttons were pressed python

Solutions on MaxInterview for how to check if two buttons were pressed python by the best coders in the world