Логические операторы Python and, or, and not (логическая связь, дизъюнкция, отрицание) https://ru.from-locals.com/python-boolean-operation/