First, total noob here. Apologies in advance if this has already been addressed, but I have not found anything that specifically answers my question, yet.
I have some experience with structured text programming in CoDeSys and Visual Basic, and interested in learning GPIO and Python. The first foray into Pi world was with my home network, using two Pi 4's to run Pi-hole (love it, btw). Pi's are running 24/7 as DNS servers 1 & 2.
I want to use one of them to also operate a door lock via combination button press. One sequence would activate the output if all buttons were pressed simultaneously, and another alternative would activate the output only if the buttons were pressed in a specific order. Not sure if the latter is feasible or not, but would like to give it a try. Thinking the timing would need specific pauses to reset the sequence if the wrong button was pressed, but I'll defer to the experts here for that.
EDITED: added code for one button, but having difficulty figuring out how to nest the other buttons in the code as a condition for activating the output.
Thank you in advance for your help!