diff options
Diffstat (limited to 'es-es/python-es.html.markdown')
-rw-r--r-- | es-es/python-es.html.markdown | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/es-es/python-es.html.markdown b/es-es/python-es.html.markdown index 0b21e479..6fec491e 100644 --- a/es-es/python-es.html.markdown +++ b/es-es/python-es.html.markdown @@ -15,7 +15,6 @@ Es básicamente pseudocódigo ejecutable. ¡Comentarios serán muy apreciados! Pueden contactarme en [@louiedinh](http://twitter.com/louiedinh) o louiedinh [at] [servicio de email de google] ```python - # Comentarios de una línea comienzan con una almohadilla (o signo gato) """ Strings multilinea pueden escribirse @@ -421,7 +420,7 @@ map(sumar_10, [1,2,3]) #=> [11, 12, 13] filter(lambda x: x > 5, [3, 4, 5, 6, 7]) #=> [6, 7] # Podemos usar listas por comprensión para mapeos y filtros agradables -[add_10(i) for i in [1, 2, 3]] #=> [11, 12, 13] +[sumar_10(i) for i in [1, 2, 3]] #=> [11, 12, 13] [x for x in [3, 4, 5, 6, 7] if x > 5] #=> [6, 7] # también hay diccionarios {k:k**2 for k in range(3)} #=> {0: 0, 1: 1, 2: 4} |