summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSrMarques <djassdemig@gmail.com>2022-11-24 08:30:26 +0100
committerGitHub <noreply@github.com>2022-11-24 08:30:26 +0100
commit7479c4db9044c0e438fa565f9319527164280ee6 (patch)
treebfc8b30d8ef8298354b494464ef9f39d122c0b3b
parent7a505c1d0c3de87d1b3113f815b61790ec4d9ab4 (diff)
Update incorrect variables
-rw-r--r--es-es/python-es.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/es-es/python-es.html.markdown b/es-es/python-es.html.markdown
index 7deec286..08cf9769 100644
--- a/es-es/python-es.html.markdown
+++ b/es-es/python-es.html.markdown
@@ -421,7 +421,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}
@@ -548,7 +548,7 @@ def pedir(_decir):
@pedir
-def say(decir_por_favor=False):
+def decir(decir_por_favor=False):
mensaje = "¿Puedes comprarme una cerveza?"
return mensaje, decir_por_favor