Sorry but I can't understand why it gives me in out "ok" even if the second if is not true!
val = ('zxyea')
print("val")
if ("a") or ("b") in val.lower():
    if ("c") or ("d") in val.lower(): `enter code here`
        if ("e") or ("f") in val.lower():
            print("ok")
This is a piece of my code:
if ("accendi") or ("accendere") or ("spegi") or ("spegere") or ("luce") or ("luci") in text.lower:
        
        if ("sala") or ("salone") or ("salotto") in text.lower:
            #luce_sala()
            print("sala")
        elif ("cucina") or ("mensola") in text.lower:
            #luce_cucina
            print("cucina")
            
        elif ("led") or ("diffusa") in text.lower:
            #luce_led
            print("led")
            
        elif ("tutte") or ("tutta")or ("tutto") in text.lower:
            #tutte_le_luci
            print("tutte le luci")
