Skip to content

Commit f8b1a6d

Browse files
Merge pull request #4580 from luovkle/master
[python/es-es] parentheses required in print functions are added
2 parents 2c524f0 + b63cb12 commit f8b1a6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

es-es/python-es.html.markdown

+4-4
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ keyword_args(pie="grande", lago="ness") #=> {"pie": "grande", "lago": "ness"}
388388

389389
# Puedes hacer ambas a la vez si quieres
390390
def todos_los_argumentos(*args, **kwargs):
391-
print args
392-
print kwargs
391+
print(args)
392+
print(kwargs)
393393
"""
394394
todos_los_argumentos(1, 2, a=3, b=4) imprime:
395395
(1, 2)
@@ -462,10 +462,10 @@ class Humano(object):
462462

463463
# Instancia una clase
464464
i = Humano(nombre="Ian")
465-
print i.decir("hi") # imprime "Ian: hi"
465+
print(i.decir("hi")) # imprime "Ian: hi"
466466

467467
j = Humano("Joel")
468-
print j.decir("hello") #imprime "Joel: hello"
468+
print(j.decir("hello")) #imprime "Joel: hello"
469469

470470
# Llama nuestro método de clase
471471
i.get_especie() #=> "H. sapiens"

0 commit comments

Comments
 (0)