Im trying to learn python but struggling on this problem. I will be thankfull if anyone give me some help.
in practice "do some2" activates even when I press button 3 before buttons 1 and 2. Anyone can help me, please?
1 2 3 4 5 6 |
while button1_pressed and button2_pressed: #no matter which one is pressed first to me do some while button3_pressed: #only if it is pressed after button1 and button2 are pressed do some2 if button2_is_not_pressed: break |