From 9de730bcf5d84a772d3e99d681e35e79dbb72837 Mon Sep 17 00:00:00 2001 From: Carla Prieto Date: Tue, 30 Oct 2018 19:52:36 -0600 Subject: [PATCH] Fixed code visualization error on python samples (#20517) Fixed code visualization error on python code samples in if-elseif-statements. --- .../spanish/python/if-elif-else-statements/index.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/guide/spanish/python/if-elif-else-statements/index.md b/guide/spanish/python/if-elif-else-statements/index.md index d31064ab34..e83685a002 100644 --- a/guide/spanish/python/if-elif-else-statements/index.md +++ b/guide/spanish/python/if-elif-else-statements/index.md @@ -60,8 +60,7 @@ _Tenga en cuenta que solo se ejecutará la primera condición que se evalúe com También podemos crear anidados si para la toma de decisiones. Antes de la anterior, consulte la guía de sangrado href = 'https: //guide.freecodecamp.org/python/code-blocks-and-indentation' target = '\_ blank' rel = 'nofollow'> una vez antes de la anterior. Tomemos un ejemplo de encontrar un número que sea par y también mayor que '10 \` -``` -python +```python x = 34 if x % 2 == 0: # this is how you create a comment and now, checking for even. if x > 10: @@ -79,8 +78,7 @@ Si bien los ejemplos anteriores son simples, puede crear condiciones complejas u **_Python en línea if-else instrucción_** También podemos usar sentencias if-else en funciones de python en línea El siguiente ejemplo debe verificar si el número es mayor o igual a 50, si es así, devuelva Verdadero: -``` -python +```python x = 89 is_greater = True if x >= 50 else False @@ -88,9 +86,9 @@ python ``` Salida -``` +```python > True - > +> -``` \ No newline at end of file +```