Operadores lógicos
Los operadores lógicos modifican y unen expresiones evaluadas en contexto booleano para crear condiciones más complejas.
Operador
Ejemplo
Significado
not
not x
True
if x
is False
False
if x
is True
or
x or y
True
if either x
or y
is True
False
otherwise
and
x and y
True
if both x
and y
are True
False
otherwise
1. Operador not
not
2. Operador or
or
3. Operador and
and
Última actualización