I just started with python and RPi. But i stuck :D I have 4 microswitches, and few posibilities (BC1, BC2, BC3... etc). For example, if we choose posibility BC1, then microswitch 1 (btn1) and 2 (btn2) must be active, if that case is true, then ledG1 and vazduh are active. Also I need to have a posibiliti to insert another posibiliti (BC1, BC2, BC3), and untill we insert another posibility first must be active (if requested switches are active).
With this code it's working, but ask me only once to insert possibility.