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\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2023-12-12 17:18+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.9.0\n" #: ../../source/python-for-break.rst:9 msgid "Sentencia ``break``" msgstr "``break`` statement" #: ../../source/python-for-break.rst:11 msgid "" "La sentencia ``break`` dentro de un bucle ``for`` salta fuera del bucle " "para continuar con la siguiente instrucción después del bucle." msgstr "" "The ``break`` statement inside a ``for`` jumps out of the loop to " "continue to the next statement after the loop." #: ../../source/python-for-break.rst:14 msgid "" "Esta sentencia 'rompe' la ejecución del bucle ``for`` y la termina de " "forma inmediata." msgstr "This statement 'breaks' the execution of the ``for`` loop." #: ../../source/python-for-break.rst:17 msgid "" "En el siguiente ejemplo un contador desde el número 1 hasta el número 9 " "se rompe en el número 5::" msgstr "" #: ../../source/python-for-break.rst:27 msgid "La salida por pantalla del anterior código será la siguiente::" msgstr "" #: ../../source/python-for-break.rst:36 msgid "" "En este otro ejemplo, un programa busca el primer número que sea múltiplo" " de 5 y de 7 entre los primeros 100 números. El programa deja de buscar " "cuando encuentra el primer número que cumpla la condición::" msgstr "" "In this other example, a program looks for the first number that is a " "multiple of 5 and 7 among the first 100 numbers. The program stops " "searching when it finds the first number that meets the condition::" #: ../../source/python-for-break.rst:47 msgid "" "En los bucles ``for`` también se puede utilizar la sentencia ``else``. El" " bloque de código dentro de la sentencia ``else`` se ejecutará siempre " "que el bucle for termine normalmente y no se ejecutará si el bucle for " "termina debido a una sentencia ``break``" msgstr "" "You can also use the ``else`` statement in ``for`` loops. The block of " "code inside the ``else`` statement will be executed whenever the for loop" " terminates normally and will not be executed if the for loop terminates " "due to a ``break`` statement" #: ../../source/python-for-break.rst:52 msgid "Ejemplo::" msgstr "Example::" #: ../../source/python-for-break.rst:64 msgid "Ejercicios" msgstr "Exercises" #: ../../source/python-for-break.rst:66 msgid "" "Escribe un programa que imprima en pantalla una cuenta hacia atrás desde " "el 10 hasta el 1. El programa se debe detener al llegar al número 5." msgstr "" "Write a program that prints a countdown from 10 to 1 on the screen. The " "program should stop at the number 5." #: ../../source/python-for-break.rst:70 ../../source/python-for-break.rst:86 #: ../../source/python-for-break.rst:104 ../../source/python-for-break.rst:120 #: ../../source/python-for-break.rst:138 msgid "Pista::" msgstr "Clue::" #: ../../source/python-for-break.rst:78 msgid "" "Escribe un programa que pida una contraseña un máximo de 4 veces. Si se " "acierta la contraseña debe escribir 'Acceso autorizado' y terminar. Si no" " se acierta la contraseña las 4 veces, debe escribir 'Acceso no " "autorizado'." msgstr "" "Write a program that asks for a password a maximum of 4 times. If the " "password is correct, you must write 'Authorized access' and finish. If " "the password is not correct all 4 times, you must write 'Unauthorized " "access'." #: ../../source/python-for-break.rst:83 msgid "" "La validez de la contraseña y del acceso debe escribirse en una variable " "que se comprobará al final del bucle." msgstr "" "The password and access validity must be written to a variable that will " "be checked at the end of the loop." #: ../../source/python-for-break.rst:98 msgid "" "Modifica el siguiente programa para que escriba una frase en la pantalla " "hasta llegar a la letra número 30, en la que debe dejar de escribir " "gracias a una sentencia break." msgstr "" "Modify the following program so that it writes a sentence on the screen " "until it reaches letter number 30, where it must stop typing thanks to a " "break statement." #: ../../source/python-for-break.rst:102 msgid "Utiliza un contador de letras para saber cuando debe terminar el bucle." msgstr "It uses a letter counter to know when the loop should end." #: ../../source/python-for-break.rst:115 msgid "" "Escribe un programa que vaya sumando todos los números enteros desde el 1" " hasta el 100 y que se detenga cuando la suma sea mayor que 1000. El " "programa debe indicar hasta qué número ha sumado y cual es el resultado " "de la suma." msgstr "" "Write a program that adds all the integers from 1 to 100 and that stops " "when the sum is greater than 1000. The program must indicate up to which " "number it has added and what the result of the addition is." #: ../../source/python-for-break.rst:132 msgid "" "Escribe un programa que busque si un número tiene divisores entre el 2 y " "el propio número menos uno. En caso de tener algún divisor, escribe en la" " pantalla que no es un número primo. En caso contrario escribe que es un " "número primo." msgstr "" "Write a program that checks if a number has divisors between 2 and the " "number itself minus one. If you have a divisor, write on the screen that " "it is not a prime number. Otherwise write that it is a prime number."