msgid "" msgstr "" "Project-Id-Version:Tecno Recursos 2023Report-Msgid-Bugs-To:POT-Creation-Date:2023-07-20 19:13+0200PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME Language:enLanguage-Team:en Plural-Forms:nplurals=2; plural=(n != 1)MIME-Version:1.0Content-Type:text/plain; charset=utf-8Content-Transfer-Encoding:8bitGenerated-By:Babel 2.9.0" "Report-Msgid-Bugs-To:EMAIL@ADDRESS" "POT-Creation-Date:2023-07-26 11:40+0200" "PO-Revision-Date:YEAR-MO-DA HO:MI+ZONE" "Last-Translator:FULL NAME " "Language-Team:LANGUAGE " "MIME-Version:1.0" "Content-Type:text/plain; charset=utf-8" "Content-Transfer-Encoding:8bit" "Generated-By:Babel 2.9.0" #: ../../source/python-funciones.rst:9 msgid "Definición de funciones" msgstr "Definition of functions" #: ../../source/python-funciones.rst:11 msgid "" "Las funciones son bloques de código que realizan una tarea determinada que " "deseamos ejecutar una o varias veces. También se utilizan las funciones para" " agrupar instrucciones con un nombre descriptivo." msgstr "" "Functions are blocks of code that perform a certain task that we want to " "execute once or several times. Functions are also used to group instructions" " with a descriptive name." #: ../../source/python-funciones.rst:16 msgid "" "Gracias a las funciones podemos dividir un programa largo en muchos bloques " "pequeños. Esto facilita mucho la programación y la lectura del código por " "parte de otras personas." msgstr "" "Thanks to functions we can divide a long program into many small blocks. " "This makes it much easier for other people to program and read the code." #: ../../source/python-funciones.rst:20 msgid "Ejemplo de definición de una función::" msgstr "Example of a function definition::" #: ../../source/python-funciones.rst:28 msgid "" "La definición de la función no hace nada por si sola. Es necesario " "**llamar** a la función ``mensaje()`` para que se ejecute el código que se " "encuentra dentro de ella." msgstr "" "The function definition does nothing by itself. The function ``message()`` " "needs to be **called** in order for the code inside it to be executed." #: ../../source/python-funciones.rst:34 msgid "Parámetros y argumentos" msgstr "Parameters and arguments" #: ../../source/python-funciones.rst:35 msgid "" "Los **parámetros** son las variables que se declaran entre paréntesis en la " "definición de la función." msgstr "" "**Parameters** are the variables that are declared between parentheses in " "the function definition." #: ../../source/python-funciones.rst:38 msgid "" "Los **argumentos** son los valores que utilizamos para llamar a la función. " "Los argumentos permiten personalizar el comportamiento de una función y " "pueden ser de diferentes tipos (booleano, números, cadenas de texto, etc)." msgstr "" "The **arguments** are the values ​​we use to call the function. The " "arguments allow you to customize the behavior of a function and can be of " "different types (boolean, numbers, text strings, etc)." #: ../../source/python-funciones.rst:44 msgid "Ejemplo de definición de una función con un parámetro (nombre)::" msgstr "Example of defining a function with one parameter (name)::" #: ../../source/python-funciones.rst:50 msgid "" "Llamada a la función con dos argumentos distintos ('Javier' y 'Sara')::" msgstr "Function call with two different arguments ('Javier' and 'Sara')::" #: ../../source/python-funciones.rst:55 ../../source/python-funciones.rst:76 msgid "Resultado::" msgstr "Result::" #: ../../source/python-funciones.rst:62 msgid "Sentencia ``return``" msgstr "``return`` statement" #: ../../source/python-funciones.rst:63 msgid "" "La sentencia ``return`` se utiliza para devolver un dato desde la función." msgstr "The ``return`` statement is used to return data from the function." #: ../../source/python-funciones.rst:65 msgid "" "También se puede utilizar para terminar la función en ese punto, con un " "comportamiento semejante a la sentencia ``break`` de un bucle." msgstr "" "It can also be used to terminate the function at that point, with behavior " "similar to a ``break`` statement in a loop." #: ../../source/python-funciones.rst:68 msgid "Ejemplo de definición de una función con ``return``::" msgstr "Example of a function definition with ``return``::" #: ../../source/python-funciones.rst:83 msgid "Ejercicios" msgstr "Exercises" #: ../../source/python-funciones.rst:85 msgid "" "Escribe una función que calcule si un número es par o impar y lo imprima por" " la pantalla." msgstr "" "Write a function that calculates if a number is even or odd and prints it to" " the screen." #: ../../source/python-funciones.rst:88 msgid "" "Escribe también en el programa varias llamadas a la función con varios " "números para comprobar que funciona correctamente." msgstr "" "Also write multiple function calls with multiple numbers to the program to " "verify that it works correctly." #: ../../source/python-funciones.rst:91 ../../source/python-funciones.rst:118 #: ../../source/python-funciones.rst:133 msgid "Pista::" msgstr "Clue::" #: ../../source/python-funciones.rst:97 msgid "" "Escribe la definición de una función llamada 'maximo(a, b)' a la que le " "pasemos dos números como argumentos y que retorne el mayor de los dos." msgstr "" "Write the definition of a function called 'maximum(a, b)' to which we pass " "two numbers as arguments and which returns the greater of the two." #: ../../source/python-funciones.rst:100 msgid "" "Escribe también en el programa varias llamadas a la función con varias " "parejas de números, para probar que funciona correctamente." msgstr "" "Also write several function calls with several pairs of numbers in the " "program to test that it works correctly." #: ../../source/python-funciones.rst:104 msgid "" "Escribe la definición de una función que transforme grados celsius a grados " "fahrenheit sabiendo que::" msgstr "" "Write the definition of a function that transforms degrees Celsius to " "degrees Fahrenheit knowing that:" #: ../../source/python-funciones.rst:110 msgid "" "Escribe la definición de una función que retorne el factorial de un número." msgstr "" "Write the definition of a function that returns the factorial of a number." #: ../../source/python-funciones.rst:113 msgid "" "El factorial es el resultado de multiplicar todos los números desde el 1 " "hasta el número deseado." msgstr "" "The factorial is the result of multiplying all the numbers from 1 to the " "desired number." #: ../../source/python-funciones.rst:116 msgid "Imprime el factorial de 5, 8 y 20." msgstr "Print the factorial of 5, 8, and 20." #: ../../source/python-funciones.rst:127 msgid "" "Escribe la definición de una función que imprima una fila de n asteriscos en" " pantalla." msgstr "" "Write the definition of a function that prints a row of n asterisks to the " "screen." #: ../../source/python-funciones.rst:130 msgid "" "Llama a esa función varias veces para imprimir un triángulo de asteriscos " "que comience por 1 asterisco y termine con 10 asteriscos." msgstr "" "Call that function multiple times to print a triangle of asterisks starting " "with 1 asterisk and ending with 10 asterisks." #: ../../source/python-funciones.rst:143 msgid "" "Escribe la definición de una función que imprima la tabla de multiplicar de " "un número." msgstr "" "Write the definition of a function that prints the multiplication table of a" " number." #: ../../source/python-funciones.rst:146 msgid "Utiliza esta función para imprimir la tabla del 3 y la tabla del 5." msgstr "Use this function to print the table of 3 and the table of 5." #: ../../source/python-funciones.rst:148 msgid "Salida::" msgstr "Exit::"