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" #: ../../source/python-if-anidados.rst:9 msgid "Sentencias ``if`` anidadas" msgstr "Nested ``if`` statements" #: ../../source/python-if-anidados.rst:10 msgid "" "Una estructura de programación se dice que está anidada cuando se encuentra " "dentro de otra." msgstr "" "A programming structure is said to be nested when it is inside another." #: ../../source/python-if-anidados.rst:13 msgid "" "Cada nivel extra con otra instrucción ``if`` habrá que escribir el código " "con sangría, es decir, con espacios a la izquierda." msgstr "" "Each extra level with another ``if`` statement will have to be indented, " "that is, with spaces to the left." #: ../../source/python-if-anidados.rst:16 msgid "Este es un ejemplo con la instrucción ``if`` anidada en dos niveles::" msgstr "This is an example with the ``if`` statement nested in two levels::" #: ../../source/python-if-anidados.rst:26 msgid "" "Anidar condiciones ``if`` puede ser útil, pero hay que intentar que no se " "aniden muchos niveles para facilitar la lectura del código." msgstr "" "Nesting ``if`` conditions can be useful, but try not to nest too many levels" " to make the code easier to read." #: ../../source/python-if-anidados.rst:29 msgid "Este es otro ejemplo de ``if`` anidado en dos niveles::" msgstr "This is another example of ``if`` nested on two levels:" #: ../../source/python-if-anidados.rst:45 msgid "Ejercicios" msgstr "Exercises" #: ../../source/python-if-anidados.rst:47 msgid "" "Escribe un programa que calcule el precio en la entrada de un cine " "dependiendo de la edad." msgstr "" "Write a program that calculates the price of a movie ticket depending on the" " age." #: ../../source/python-if-anidados.rst:50 msgid "El precio normal de la entrada es de 10 Euros." msgstr "The normal price of the entrance is 10 Euros." #: ../../source/python-if-anidados.rst:52 msgid "Si el cliente tiene una edad de 60 o más años, solo pagará 2 Euros." msgstr "If the client is 60 or older, they will only pay 2 Euros." #: ../../source/python-if-anidados.rst:54 msgid "Si el cliente tiene una edad de 12 o menos años, solo pagará 4 Euros." msgstr "If the client is 12 years old or less, he will only pay 4 Euros." #: ../../source/python-if-anidados.rst:56 #: ../../source/python-if-anidados.rst:75 #: ../../source/python-if-anidados.rst:109 #: ../../source/python-if-anidados.rst:134 #: ../../source/python-if-anidados.rst:174 msgid "Pista::" msgstr "Clue::" #: ../../source/python-if-anidados.rst:62 msgid "" "Escribe un programa para comprobar si una persona puede subir a las " "atracciones de un parque." msgstr "Write a program to check if a person can ride the rides in a park." #: ../../source/python-if-anidados.rst:65 msgid "Si la altura es menor de 140, no puedes subir a las atracciones" msgstr "If the height is less than 140, you can not go on the attractions" #: ../../source/python-if-anidados.rst:67 #: ../../source/python-if-anidados.rst:126 #: ../../source/python-if-anidados.rst:129 msgid "En caso contrario:" msgstr "Otherwise:" #: ../../source/python-if-anidados.rst:69 msgid "" "Si la edad es menor de 12 años, puedes subir a las atracciones para niños." msgstr "" "If the age is less than 12 years old, you can go on the attractions for " "children." #: ../../source/python-if-anidados.rst:72 msgid "" "Si la edad es mayor o igual a 12 años, puedes subir a todas las atracciones." msgstr "" "If the age is greater than or equal to 12 years, you can go up to all the " "attractions." #: ../../source/python-if-anidados.rst:82 msgid "" "Escribe un programa que pregunte la nota obtenida y que responda según las " "siguientes condiciones:" msgstr "" "Write a program that asks for the grade obtained and that answers according " "to the following conditions:" #: ../../source/python-if-anidados.rst:85 msgid "Si la nota es mayor o igual a 5 -> Has aprobado" msgstr "If the grade is greater than or equal to 5 -> You have passed" #: ../../source/python-if-anidados.rst:87 msgid "Si la nota es mayor que 6 -> Has aprobado con buena nota" msgstr "If the grade is greater than 6 -> You have passed with a good grade" #: ../../source/python-if-anidados.rst:89 msgid "Si la nota es menor que 5 -> Has suspendido" msgstr "If the note is less than 5 -> You have failed" #: ../../source/python-if-anidados.rst:91 msgid "Si la nota es menor que 4 -> Has suspendido con mala nota" msgstr "If the grade is less than 4 -> You have failed with a bad grade" #: ../../source/python-if-anidados.rst:94 msgid "Escribe un programa de ayuda para reparar objetos." msgstr "Write a helper program to repair objects." #: ../../source/python-if-anidados.rst:96 msgid "" "El programa primero debe preguntar si el objeto se mueve. Después debe " "preguntar si el objeto debería moverse. A continuación el programa debe " "imprimir un mensaje en pantalla dependiendo de las opciones introducidas:" msgstr "" "The program must first ask if the object is moving. Then you must ask if the" " object should move. The program should then print a message on the screen " "depending on the options entered:" #: ../../source/python-if-anidados.rst:101 msgid "Si el objeto se mueve y debería moverse -> No hace falta reparar." msgstr "If the object moves and it should move -> No need to repair." #: ../../source/python-if-anidados.rst:103 msgid "" "Si el objeto se mueve y no debería moverse -> Utilizar cinta americana." msgstr "If the object is moving and it shouldn't be moving -> Use duct tape." #: ../../source/python-if-anidados.rst:105 msgid "" "Si el objeto no se mueve y no debería moverse -> No hace falta reparar." msgstr "" "If the object does not move and it should not move -> No need to repair." #: ../../source/python-if-anidados.rst:107 msgid "Si el objeto no se mueve y debería moverse -> Utilizar aceite 3 en 1." msgstr "If the object does not move and it should move -> Use 3 in 1 oil." #: ../../source/python-if-anidados.rst:118 msgid "" "Escribe un programa para identificar personajes del cómic Astérix y Obélix." msgstr "" "Write a program to identify characters from the Asterix and Obelix comics." #: ../../source/python-if-anidados.rst:121 msgid "Si el personaje es protagonista principal:" msgstr "If the character is the main protagonist:" #: ../../source/python-if-anidados.rst:123 msgid "Si el personaje levanta menhires: es Obélix." msgstr "If the character raises menhirs: it is Obelix." #: ../../source/python-if-anidados.rst:124 msgid "En caso contrario: es Astérix." msgstr "Otherwise: it's Asterix." #: ../../source/python-if-anidados.rst:128 msgid "Si el personaje prepara pociones: es Panorámix." msgstr "If the character brews potions: it is Panoramix." #: ../../source/python-if-anidados.rst:131 msgid "Si el personaje canta mal: es Asuracentúrix." msgstr "If the character sings badly: it is Assurancetúrix." #: ../../source/python-if-anidados.rst:132 msgid "En caso contrario: el personaje no está identificado." msgstr "Otherwise: the character is not identified." #: ../../source/python-if-anidados.rst:142 msgid "" "Escribe un programa que pregunte el usuario y luego la contraseña. Si el " "usuario es igual a 'admin' entonces comprueba la contraseña, que debe ser " "igual a 'secreta'. En caso de escribir la contraseña correcta se debe " "imprimir 'inicio de sesión correcto'." msgstr "" "Write a program that asks for the username and then the password. If the " "user is equal to 'admin' then it checks the password, which should be equal " "to 'secret'. In case of writing the correct password, 'successful login' " "should be printed." #: ../../source/python-if-anidados.rst:147 msgid "" "Si la contraseña está equivocada se debe escribir 'Contraseña incorrecta'" msgstr "If the password is wrong, write 'Wrong password'" #: ../../source/python-if-anidados.rst:149 msgid "Si el usuario no es 'admin' se debe escribir 'Usuario incorrecto'" msgstr "If the user is not 'admin', write 'Wrong User'" #: ../../source/python-if-anidados.rst:152 msgid "Escribe un programa para clasificar triángulos." msgstr "Write a program to classify triangles." #: ../../source/python-if-anidados.rst:154 msgid "Primero se deben definir en el programa las longitudes de los lados::" msgstr "First, the lengths of the sides must be defined in the program:" #: ../../source/python-if-anidados.rst:160 msgid "" "A continuación se deben comprobar las longitudes de los lados e imprimir en " "pantalla el tipo de triángulo:" msgstr "" "Next, the lengths of the sides must be checked and the type of triangle " "printed on the screen:" #: ../../source/python-if-anidados.rst:163 msgid "Si lado1 == lado2 and si lado2 == lado3: es equilátero" msgstr "If side1 == side2 and if side2 == side3: is equilateral" #: ../../source/python-if-anidados.rst:164 msgid "Si lado1 == lado2 or lado1 == lado3 or lado2 == lado3: es isósceles" msgstr "If side1 == side2 or side1 == side3 or side2 == side3: is isosceles" #: ../../source/python-if-anidados.rst:165 msgid "En caso contrario: es escaleno." msgstr "Otherwise: it is scalene." #: ../../source/python-if-anidados.rst:168 msgid "" "Escribe un programa que verifique si un año es bisiesto. Un año es bisiesto " "si es divisible por 4 (anio % 4 == 0)." msgstr "" "Write a program that checks if a year is a leap year. A year is a leap year " "if it is divisible by 4 (year % 4 == 0)." #: ../../source/python-if-anidados.rst:171 msgid "" "De estos años bisiestos hay que eliminar los que son divisibles por 100 y " "añadir los que son divisibles por 400." msgstr "" "Of these leap years, we must eliminate those that are divisible by 100 and " "add those that are divisible by 400." #: ../../source/python-if-anidados.rst:188 msgid "La lista de años bisiestos entre 1600 y 2400 es::" msgstr "The list of leap years between 1600 and 2400 is:" #: ../../source/python-if-anidados.rst:230 msgid "" "En la lista no deben salir los años 1700, 1800, 1900, 2100, 2200, 2300 " "porque son divisibles por 100." msgstr "" "The years 1700, 1800, 1900, 2100, 2200, 2300 should not appear in the list " "because they are divisible by 100." #: ../../source/python-if-anidados.rst:233 msgid "" "En la lista sí deben salir los años 1600, 2000 y 2400 porque, aunque son " "divisibles por 100, también son divisibles por 400." msgstr "" "The years 1600, 2000 and 2400 should appear in the list because, although " "they are divisible by 100, they are also divisible by 400."