diff options
author | Stanislav (Stanley) Modrak <44023416+smith558@users.noreply.github.com> | 2023-03-08 09:35:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-08 09:35:48 +0000 |
commit | 4c79407041c1a1969815368c11003cb5ea20a837 (patch) | |
tree | c464ca387191c91f0dc2572ef4b281a3c7aa1844 /es-es/python-es.html.markdown | |
parent | e3ee5b81faad348586ff50dda2100046bd17591f (diff) | |
parent | fbaa905e23f26d20b37a3886dd8e07cd6edb8680 (diff) |
Merge branch 'master' into patch-4
Diffstat (limited to 'es-es/python-es.html.markdown')
-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" |