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.0Report-Msgid-Bugs-To:EMAIL@ADDRESSPOT-Creation-Date:2023-07-26 11:40+0200PO-Revision-Date:YEAR-MO-DA HO:MI+ZONELast-Translator:FULL NAME Language-Team:LANGUAGE 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-09-19 15:16+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-while.rst:9 msgid "Sentencia ``while``" msgstr "``while`` statement" #: ../../source/python-while.rst:10 msgid "" "La sentencia ``while`` permite ejecutar un bloque de código varias veces " "mientras se cumple una condición." msgstr "" "The ``while`` statement allows a block of code to be executed multiple times" " while a condition is met." #: ../../source/python-while.rst:13 msgid "" "Es un tipo de bucle con condición. Se utiliza cuando no sabemos exactamente " "cuántas veces se requiere ejecutar un bloque de código, pero si que sabemos " "que condición se tiene que cumplir." msgstr "" "It is a type of loop with condition. It is used when we do not know exactly " "how many times a block of code needs to be executed, but we do know what " "condition must be met." #: ../../source/python-while.rst:17 msgid "" "Ejemplo de programa que suma precios mientras que el total sea menor de " "1000::" msgstr "" "Example of a program that adds prices while the total is less than 1000::" #: ../../source/python-while.rst:29 msgid "Sentencia ``while True``" msgstr "``while True`` statement" #: ../../source/python-while.rst:30 msgid "" "También se puede utilizar la sentencia ``while`` con una condición siempre " "verdadera para hacer un bucle que se ejecute para siempre::" msgstr "" "You can also use the ``while`` statement with an always true condition to " "make a loop that runs forever::" #: ../../source/python-while.rst:37 msgid "" "Para poder parar el funcionamiento de este programa hay que presionar las " "teclas [Control] + [C]." msgstr "" "In order to stop the operation of this program, you must press the [Control]" " + [C] keys." #: ../../source/python-while.rst:40 msgid "" "El programa anterior es poco funcional porque no tiene una condición para " "poder detenerse. Ahora veremos otro ejemplo con la sentencia ``while`` que " "se detiene gracias a una sentencia ``break`` después de escribir la palabra " "'fin'::" msgstr "" "The previous program is not very functional because it does not have a " "condition to stop. Now we will see another example with the ``while`` " "statement that is stopped thanks to a ``break`` statement after writing the " "word 'end'::" #: ../../source/python-while.rst:52 msgid "" "Esta construcción es equivalente a decir que se ejecute un bloque de " "instrucciones **hasta que** se cumpla una condición." msgstr "" "This construction is equivalent to saying to execute a block of statements " "**until** a condition is met." #: ../../source/python-while.rst:57 msgid "Ejercicios" msgstr "Exercises" #: ../../source/python-while.rst:59 msgid "" "Escribe un programa con la sentencia ``while`` que vaya imprimiendo todos " "los números desde el 0 hasta el 10." msgstr "" "Write a program with the ``while`` statement that prints all the numbers " "from 0 to 10." #: ../../source/python-while.rst:62 ../../source/python-while.rst:80 #: ../../source/python-while.rst:91 ../../source/python-while.rst:101 #: ../../source/python-while.rst:121 msgid "Pista::" msgstr "Clue::" #: ../../source/python-while.rst:70 msgid "" "Modifica el programa anterior para que imprima todos los números desde el 10" " hasta el 0." msgstr "" "Modify the previous program so that it prints all numbers from 10 to 0." #: ../../source/python-while.rst:74 msgid "" "Escribe un programa que sume todos los números enteros desde el 1 y que se " "detenga cuando la suma sea mayor o igual a 1000." msgstr "" "Write a program that adds all the integers starting from 1 and stops when " "the sum is greater than or equal to 1000." #: ../../source/python-while.rst:77 msgid "" "Al final debe escribir desde qué número hasta qué número ha sumado y cuánto " "vale la suma." msgstr "" "At the end you must write from what number to what number you have added and" " how much the sum is worth." #: ../../source/python-while.rst:88 msgid "" "Escribe un programa que se repita continuamente hasta que se introduzca por " "el teclado la letra 'n' a la pregunta '¿Quieres continuar? (S/n)'." msgstr "" "Write a program that repeats continuously until the letter 'n' is entered on" " the keyboard to the question 'Do you want to continue? (Y/n)'." #: ../../source/python-while.rst:97 msgid "" "Escribe un programa que imprima la `sucesión de Fibonacci " "`__ hasta el " "número 1000." msgstr "" "Write a program that prints the `Fibonacci sequence " "`__ up to the " "number 1000." #: ../../source/python-while.rst:112 msgid "" "Escribe un programa que juegue con el usuario a adivinar un número. Si el " "número introducido es más alto que el número secreto, debe imprimir una " "pista diciendo 'Demasiado alto'. Igualmente debe imprimir una pista " "'Demasiado bajo' para los números menores que el número secreto." msgstr "" "Write a program that plays a number guessing game with the user. If the " "number entered is higher than the secret number, it must print a hint saying" " 'Too high'. You should also print a 'Too Low' hint for numbers smaller than" " the secret number." #: ../../source/python-while.rst:118 msgid "" "Cuando el usuario acierte el número secreto, el programa debe imprimir " "'Acertaste' y detenerse." msgstr "" "When the user guesses the secret number, the program should print 'You " "guessed right' and stop."