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-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-textos-formateo.rst:10 msgid "Formateo de cadenas de texto" msgstr "Formatting text strings" #: ../../source/python-textos-formateo.rst:12 msgid "" "`Un literal de cadena de texto con formateo " "`__ " "es una cadena de texto que comienza por la letra ``'F'`` o ``'f'`` y que " "contiene campos de reemplazo delimitados por llaves ``{ }``. Los campos de " "reemplazo contienen variables de Python y, opcionalmente, el formato que se " "debe dar al contenido de la variable." msgstr "" "`A formatted text string literal " "`__ " "is a text string that begins with the letter ``'F '`` or ``'f'`` and " "containing replacement fields delimited by braces ``{ }``. Replacement " "fields contain Python variables and, optionally, the formatting to give to " "the variable's contents." #: ../../source/python-textos-formateo.rst:19 msgid "" "Si se quiere imprimir una llave, es necesario duplicarla: ``{{`` o bien " "``}}``." msgstr "" "If you want to print a key, you need to duplicate it: ``{{`` or ``}}``." #: ../../source/python-textos-formateo.rst:23 #: ../../source/python-textos-formateo.rst:145 msgid "Ejemplo::" msgstr "Example::" #: ../../source/python-textos-formateo.rst:36 msgid "Ejercicios" msgstr "Exercises" #: ../../source/python-textos-formateo.rst:38 msgid "Repite el siguiente ejercicio con tu propio nombre." msgstr "Repeat the following exercise with your own name." #: ../../source/python-textos-formateo.rst:40 #: ../../source/python-textos-formateo.rst:56 #: ../../source/python-textos-formateo.rst:79 msgid "Ejercicio::" msgstr "Exercise::" #: ../../source/python-textos-formateo.rst:53 msgid "" "Repite el siguiente ejercicio con la variable número ``numero = 72``. En la " "última línea cambia el número por tu año de nacimiento." msgstr "" "Repeat the following exercise with the number variable ``number = 72``. On " "the last line change the number to your year of birth." #: ../../source/python-textos-formateo.rst:75 msgid "" "Repite el siguiente ejercicio con la variable ``e = 2,71828``. Recuerda que " "en Python los decimales siempre se separan con un punto, no con una coma." msgstr "" "Repeat the following exercise with the variable ``e = 2.71828``. Remember " "that in Python decimals are always separated with a period, not a comma." #: ../../source/python-textos-formateo.rst:93 msgid "" "Escribe un programa que pida un carácter por el teclado y que devuelva los " "siguientes 10 caracteres Unicode." msgstr "" "Write a program that prompts for a character from the keyboard and returns " "the next 10 Unicode characters." #: ../../source/python-textos-formateo.rst:96 msgid "" "Utiliza la función ``ord()`` para convertir el carácter en su número " "Unicode." msgstr "" "Use the ``ord()`` function to convert the character to its Unicode number." #: ../../source/python-textos-formateo.rst:99 msgid "Pista::" msgstr "Clue::" #: ../../source/python-textos-formateo.rst:107 #: ../../source/python-textos-formateo.rst:150 msgid "Salida::" msgstr "Exit::" #: ../../source/python-textos-formateo.rst:122 msgid "" "Prueba a introducir diferentes caracteres desde el teclado. Prueba a copiar " "de Internet y pegar símbolos, emojis, letras griegas y cirílicas, etc." msgstr "" "Try entering different characters from the keyboard. Try copying from the " "Internet and pasting symbols, emojis, Greek and Cyrillic letters, etc." #: ../../source/python-textos-formateo.rst:127 msgid "" "Escribe una función que devuelva el valor de un color RGB en Hexadecimal. " "Los tres parámetros de la función serán tres números decimales R, G y B " "(Red, Green y Blue) que deben estar en el rango de 0 a 255. Si algún número " "es mayor de 255 o menor de 0 se debe recortar al valor permitido." msgstr "" "Write a function that returns the value of an RGB color in Hexadecimal. The " "three parameters of the function will be three decimal numbers R, G and B " "(Red, Green and Blue) that must be in the range from 0 to 255. If any number" " is greater than 255 or less than 0, it must be trimmed to the allowed value" " ." #: ../../source/python-textos-formateo.rst:134 msgid "" "Pista: define una función que limite el valor de cada número y lo formatee a" " formato hexadecimal. Luego puedes definir una segunda función que llame " "tres veces a la primera función con los valores de los tres colores." msgstr "" "Hint: Define a function that limits the value of each number and formats it " "to hexadecimal format. Then you can define a second function that calls the " "first function three times with the values ​​of the three colors." #: ../../source/python-textos-formateo.rst:139 msgid "" "Recuerda que los valores hexadecimales deben estar en mayúsculas y tener dos" " cifras obligatoriamente. La manera de convertir una variable a hexadecimal " "con dos cifras es añadir a la variable el siguiente formato: " "``f'{variable:02X}'``." msgstr "" "Remember that hexadecimal values ​​must be in capital letters and must have " "two digits. The way to convert a variable to two-digit hexadecimal is to add" " the following format to the variable: ``f'{variable:02X}'``."