diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2019-11-23 19:45:04 +0100 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2019-11-23 19:45:04 +0100 |
commit | 4d73b41553d9284f8cd79fa954dc3ea662ec0ee5 (patch) | |
tree | c990ebd3f5ab6223cf48e1d5976f87a900dd7360 /src/01_intro.md | |
parent | dd8ca8090720e30239c89c6705772ae1b29d628c (diff) |
add highlighting to repl stuff
Diffstat (limited to 'src/01_intro.md')
-rw-r--r-- | src/01_intro.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/01_intro.md b/src/01_intro.md index 087406e..db3d28b 100644 --- a/src/01_intro.md +++ b/src/01_intro.md @@ -115,14 +115,14 @@ comportamiento de este ciclo a las mil maravillas: Por tanto, si introduces un valor directamente será devuelto: -``` +``` python >>> 1 1 ``` Y si lo alteras devuelve el resultado correspondiente: -``` +``` python >>> 2+2 4 ``` @@ -161,7 +161,7 @@ con la orden `print`. Para entender el valor de la REPL, te sugiero que vayas a su ventana, y justo después del resultado de la ejecución hagas lo siguiente: -``` +``` python Hola, Guido >>> nombre 'Guido' @@ -181,7 +181,7 @@ En producción el código se levantará ejecutando el intérprete de python directamente con nuestro programa como input. Por ejemplo en la shell **de sistema** usando el siguiente comando. -``` +``` bash python ejemplo.py ``` |