You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 731a6fe
Browse filesBrowse the repository at this point in the historyBrowse files
"As we shrink down our code and add functions to remove duplication, we are "
@@ -39,124 +39,124 @@ msgid ""
39
39
"hexagon!"
40
40
msgstr"A medida que reducimos nuestro código y removemos sentencias duplicadas, lo estamos *factorizando*. Esto es muy bueno. Pero las funciones que hemos definido hasta ahora no son muy flexibles. Las variables están definidas dentro de la función, entonces, si queremos usar un ángulo o distancia diferentes necesitamos escribir una nueva función. Nuestra función hexagon sólo puede dibujar hexágonos de un solo tamaño! "
41
41
42
-
#b79d85f5e8a449c892c87e2ba2da7dcc
42
+
#0f382ed388a6433892c69d788975016a
43
43
#:../../../source/functions_parameters.rst:14
44
44
msgid""
45
45
"That is why we need to be able to give parameters, also called *arguments*, "
46
46
"to the function. This way the *variables* in the function can have "
47
47
"different values each time we call the function:"
48
48
msgstr"Es por esto que necesitamos poder entregar parámetros, tambien llamados *argumentos*, a la función. De esta forma las *variables* en la función pueden tener valores diferentes cada vez que llamemos a la función:"
49
49
50
-
#0671007ca0a04689b42d236a2ebfd6f7
50
+
#c06979d98c434e81b4ea49ff07827b66
51
51
#:../../../source/functions_parameters.rst:18
52
52
msgid""
53
53
"Remember how we defined the function ``line_without_moving()`` in the "
54
54
"previous section::"
55
55
msgstr"Recuerde como definimos la función ``line_without_moving()`` en la sección anterior::"
56
56
57
-
#1e7a466cbda54b848aa7b52bdcba93f8
57
+
#8b51765f69944665a507c968b5c378f4
58
58
#:../../../source/functions_parameters.rst:25
59
59
msgid"We can improve it by giving it a parameter::"
60
60
msgstr"Podemos mejorarla dándole un parámetro::"
61
61
62
-
#e95e98b502e248fcb92752393b176ea1
62
+
#cc0b85d1cffe48f18b2bb610eab499fe
63
63
#:../../../source/functions_parameters.rst:31
64
64
msgid""
65
65
"The parameter acts as a *variable* only known inside the function's "
66
66
"definition. We use the newly defined function by calling it with the value "
67
67
"we want the parameter to have like this::"
68
68
msgstr"El parámetro actúa como una *variable* sólo conocida dentro de la definición de la función. Podemos usar la nueva función definida llamándola con el valor que queremos que tenga el parámetro, por ejemplo::"
69
69
70
-
#f57bfa231e7748aa8950a42c59fac2f1
70
+
#2ce516d329f240ac8c60c751b3834963
71
71
#:../../../source/functions_parameters.rst:38
72
72
msgid""
73
73
"We have been using functions with parameters since the beginning of the "
74
74
"tutorial with ``turtle.forward()``, ``turtle.left()``, etc..."
75
75
msgstr"Hemos estado usando funciones con parámetros desde el principio del tutorial con ``turtle.forward()``, ``turtle.left()``, etc..."
76
76
77
-
#572658a5ac4144cd9399c44d8e3c65c5
77
+
#d7a6eb4bc3e74dda83fb4c10a817466b
78
78
#:../../../source/functions_parameters.rst:41
79
79
msgid""
80
80
"And we can put as many arguments (or parameters) as we want, separating them"
81
81
" with commas and giving them different names::"
82
82
msgstr"Y podemos poner tantos argumentos (o parámetros) como queramos, separándolos con comas y dándoles nombres distintos::"
83
83
84
-
#04e2dc810b364479bd14718bb15c9983
84
+
#fb22676f90db4682bde8484f6cfa2abb
85
85
#:../../../source/functions_parameters.rst:50
86
86
msgid"A parameterized function for a variable size hexagon"
87
87
msgstr"Una función parametrizada para un hexágono de tamaño variable"
88
88
89
-
#0f0f95dfcc8c43cba60a6f18e52be0db
90
-
#0a13fd0237fa4fc7a07937ce33637458
89
+
#c97e990bfc284d2084abeb36d2e40a6d
90
+
#91602217a9ca452884130e4ca2de6c7b
91
91
#:../../../source/functions_parameters.rst:53
92
92
#:../../../source/functions_parameters.rst:72
93
93
msgid"Exercise"
94
94
msgstr"Ejercicio"
95
95
96
-
#fec2c7a4385a4b199af7d38017f3bbdf
96
+
#260b6ae6c8b748f686169dcfc475e94a
97
97
#:../../../source/functions_parameters.rst:55
98
98
msgid""
99
99
"Write a function that allows you to draw hexagons of any size you want, each"
100
100
" time you call the function."
101
101
msgstr"Escriba una función que permita dibujar hexágonos de cualquier tamaño que quiera, cada vez que llama a la función."
102
102
103
-
#b9f7cb0e3eb44448a9e7ea0ae9272dec
104
-
#1d779f3323a34ba1a39e66aec5a19fce
103
+
#51223ef548684303b60d04707ed30649
104
+
#6c230ffd971f4d6f910428843a5e5ab6
105
105
#:../../../source/functions_parameters.rst:59
106
106
#:../../../source/functions_parameters.rst:86
107
107
msgid"Solution"
108
108
msgstr"Solución"
109
109
110
-
#6ad406b7394949f6b91a18449da6bf3a
110
+
#40913ba5870045b692cba6c699bb1902
111
111
#:../../../source/functions_parameters.rst:69
112
112
msgid"A function of several parameters"
113
113
msgstr"Una función con varios parámetros"
114
114
115
-
#c7d8b33958194034a54d2b9f8da33889
115
+
#34cd45630bd84be69721085e98625bcd
116
116
#:../../../source/functions_parameters.rst:74
117
117
msgid""
118
118
"Write a function that will draw a shape of *any* number of sides (let's "
119
119
"assume greater than two) of any side length. Get it to draw some different "
120
120
"shapes."
121
121
msgstr"Escriba una función que dibuje una figura de *cualquier* número de lados (asumamos mayor a dos) de cualquier largo de sus lados. Hágala dibujar diferentes figuras."
122
122
123
-
#b2d4621c26104fda805bcf9168e89328
123
+
#c40cfb65d8c34fecbb08d5c65beff2fa
124
124
#:../../../source/functions_parameters.rst:77
125
125
msgid"Here's an example of drawing shapes with this function:"
126
126
msgstr"Acá hay un ejemplo de figuras dibujadas con esta función:"
127
127
128
-
#9b4e351d67af46e8ae6f3d96427d56f9
128
+
#4210e510ab1b40c881530d36d759451e
129
129
#:../../../source/functions_parameters.rst:83
130
-
msgid"The sum of the internal angles of any shape is always 360 degrees!"
131
-
msgstr"La suma de los ángulos internos de cualquier figura es siempre 360 grados!"
130
+
msgid"The sum of the external angles of any shape is always 360 degrees!"
131
+
msgstr""
132
132
133
-
#9f40085c5c1641ccb93840304925909b
133
+
#eb595e73da3a4b0c975479a0d937bab1
134
134
#:../../../source/functions_parameters.rst:96
135
135
msgid"Bonus"
136
136
msgstr"Bonus"
137
137
138
-
#26f9be45064e4740881b62f195ce82c4
138
+
#2fbe8dcd8a8a44648c00a7c77e7ef009
139
139
#:../../../source/functions_parameters.rst:98
140
140
msgid""
141
141
"It might sound crazy, but it's perfectly possible to pass a *function* as a "
142
142
"parameter to another function! Python regards functions as perfectly normal "
143
143
"'things', the same as variables, numbers and strings."
144
144
msgstr"Puede sonar un poco loco, pero es perfectamente posible pasar como parámetro a una *función* otra función! Python considera a las funciones como perfectamente 'cosas' normales, lo mismo para variables, números y strings."
145
145
146
-
#88541c4b6dbf4d5393ea34aac5101448
146
+
#06e4cf6f5d474597ac75e769f0166651
147
147
#:../../../source/functions_parameters.rst:102
148
148
msgid""
149
149
"For instance, you could create a shape drawing function which turned one way"
150
150
" or another depending on which turtle function you passed to it - "
151
151
"``turtle.left`` or ``turtle.right``."
152
152
msgstr"Por ejemplo, puede dibujar una función que dibuje figuras que gire en un sentido o en otro dependiendo de que función de tortuga se le entregue - ``turtle.left`` o ``turtle.rught``."
153
153
154
-
#4f17f1d6fcb04922ae9ffbe72a020039
154
+
#c3260edc46af42c7a0017001f8a370ad
155
155
#:../../../source/functions_parameters.rst:105
156
156
msgid"See if you can implement this!"
157
157
msgstr"Vea si puede implementar esto!"
158
158
159
-
#dc5ad5fd72674918a3246a4fa8e0a35f
159
+
#0df5f9416edc406ea8bf84b6a8466af8
160
160
#:../../../source/functions_parameters.rst:109
161
161
msgid""
162
162
"Passing a function (e.g ``turtle.left``) is different than *calling* it, "
0 commit comments