Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /customers/c/c/9/esploradores.com/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 MICROPYTHON ESP32 – CONCEPTOS BÁSICOS de Python Operadores de comparación (relacionales) – ESPloradores

MICROPYTHON ESP32 – CONCEPTOS BÁSICOS de Python
Operadores de comparación (relacionales)

OPERACIONES DE COMPARACIÓN (RELACIONALES)

Los operadores de comparación se utilizan para comparar dos valores:

OPERADORNOMBRE EJEMPLOSIGNIFICADO 
==Igualx == yx es igual a y
!=No igual (diferente)x != yx no es igual a y
>Mayorx > yx es mayor que y
<Menorx < yx es menor que y
>=Mayor o igualx >= yx es menor o igual que y
<=Menor o igualx <= yx es menor o igual que y

Si el resultado de la comparación es correcto la expresión se considerada verdadera (True), en caso contrario falsa (False).

Se debe tener especial cuidado en no confundir el operador de asignación “=” con el operador de comparación igual a “==”.

  • El operador de asignación “=” asigna a la variable de la izquierda el valor de la derecha (p.e a = 3).
  • El  operador de comparación “==” compara variables y/o valalores (p.e. a == b, a == 3 ó 3 == b).

Utilizando el intérprete (Shell) de Thonny, así será como se ve un ejemplo de los diferentes operadores de comparación:

[button special_style=”yes” border_radius=”2″ three_d=”yes” size=”large” color=”pumpkin” title=”CONCEPTOS BÁSICOS DE PYTHON: OPERADORES DE COMPARACIÓN” link=”https://www.esploradores.com/operadores_de_comparacion/” icon=”hb-moon-arrow-left-3″]
[button special_style=”yes” border_radius=”2″ three_d=”yes” size=”large” color=”emerald” title=”CONCEPTOS BÁSICOS DE PYTHON: MÓDULOS” icon=”hb-moon-arrow-right-4″ link=”https://www.esploradores.com/modulos/”]

Si el contenido del artículo te ha parecido interesante y vas a hacer una compra en Amazon, puedes colaborar con el blog realizando la compra siguiendo el enlace que aparece a continuación. El precio es el mismo para ti, pero este blog recibira una pequeña comisión sobre tu compra.

Publicado por Dani No

Es un diseñador de inventos revolucionarios que le podrían convertir en el hombre mas más rico del mundo. Es un maker que publica tanto unos artículos que son geniales como otros que son infumables. Años de experiencia y fracasos en proyectos tecnológicos le avalan.

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *