diff options
author | Marcel Ribeiro Dantas <ribeirodantasdm@gmail.com> | 2023-01-21 18:42:08 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-21 18:42:08 -0300 |
commit | f8b1a6df32af6d9ef9d2ea03ca8eeac204808247 (patch) | |
tree | d0ed1393e47b074f59bebcf5acc358082f15b71c | |
parent | 2c524f094864c7c2adf3916cabfb6afdc610d816 (diff) | |
parent | b63cb12fa3826ea8ed346b56ccbe3dd424e679e6 (diff) |
Merge pull request #4580 from luovkle/master
[python/es-es] parentheses required in print functions are added
-rw-r--r-- | es-es/python-es.html.markdown | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/es-es/python-es.html.markdown b/es-es/python-es.html.markdown index 7deec286..5c95854f 100644 --- a/es-es/python-es.html.markdown +++ b/es-es/python-es.html.markdown @@ -388,8 +388,8 @@ keyword_args(pie="grande", lago="ness") #=> {"pie": "grande", "lago": "ness"} # Puedes hacer ambas a la vez si quieres def todos_los_argumentos(*args, **kwargs): - print args - print kwargs + print(args) + print(kwargs) """ todos_los_argumentos(1, 2, a=3, b=4) imprime: (1, 2) @@ -462,10 +462,10 @@ class Humano(object): # Instancia una clase i = Humano(nombre="Ian") -print i.decir("hi") # imprime "Ian: hi" +print(i.decir("hi")) # imprime "Ian: hi" j = Humano("Joel") -print j.decir("hello") #imprime "Joel: hello" +print(j.decir("hello")) #imprime "Joel: hello" # Llama nuestro método de clase i.get_especie() #=> "H. sapiens" |