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\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2023-10-25 21:35+0200\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-textos-indices.rst:9 msgid "Índices de cadenas de texto" msgstr "Text string indices" #: ../../source/python-textos-indices.rst:10 msgid "" "Las cadenas de texto están formadas por caracteres individuales que se " "pueden obtener con los índices. Un índice de cadena de texto es un número" " dentro de dos corchetes ``[]`` de apertura y de cierre::" msgstr "" "Text strings are made up of individual characters that can be obtained " "using indices. A text string index is a number within two opening and " "closing ``[]`` brackets::" #: ../../source/python-textos-indices.rst:24 msgid "" "El primer carácter 'P' tiene el índice cero 'lang[0]'. Esta es una " "convención que utilizan muchos otros lenguajes de programación como el " "lenguaje C o el lenguaje JavaScript. La primera vez que se aprende no es " "sencillo acostumbrarse, pero es necesario para poder escribir código " "correcto." msgstr "" "The first character 'P' has zero index 'lang[0]'. This is a convention " "used by many other programming languages ​​such as the C language or the " "JavaScript language. The first time you learn it, it is not easy to get " "used to it, but it is necessary to be able to write correct code." #: ../../source/python-textos-indices.rst:30 msgid "Los índices negativos comienzan por el final de la cadena de texto::" msgstr "Negative indices start at the end of the text string::" #: ../../source/python-textos-indices.rst:41 msgid "Los índices fuera de rango producen un error en el programa::" msgstr "Indices out of range cause a program error::" #: ../../source/python-textos-indices.rst:51 msgid "Rebanadas o slicers" msgstr "Slices or slicers" #: ../../source/python-textos-indices.rst:52 msgid "" "Los índices se pueden escribir para que obtengan varios caracteres de una" " cadena de texto, utilizando el carácter dos puntos ':' para separar el " "comienzo del final en un índice::" msgstr "" "Indices can be written to retrieve multiple characters from a string, " "using the colon ':' character to separate start from end in an index::" #: ../../source/python-textos-indices.rst:66 msgid "" "El siguiente esquema puede ayudar a entender mejor cómo funcionan los " "índices y las rebanadas::" msgstr "" "The following schematic can help you better understand how indexes and " "slices work:" #: ../../source/python-textos-indices.rst:75 msgid "Un índice tomará la letra de su derecha." msgstr "An index will take the letter to its right." #: ../../source/python-textos-indices.rst:77 msgid "" "Una rebanada tomara los caracteres que hay entre los dos números. Por " "ejemplo, [1:-2] tomará todos los caracteres que se encuentran entre los " "índices 1 y -2 'yth' ::" msgstr "" "A slice will take the characters between the two numbers. For example, " "[1:-2] will take all characters between indices 1 and -2 'yth' ::" #: ../../source/python-textos-indices.rst:86 msgid "" "Los números de las rebanadas también se pueden dejar sin escribir y esto " "es equivalente a decir que tome todos los caracteres desde el comienzo o " "que tome todos los caracteres hasta el final de la cadena::" msgstr "" "Slice numbers can also be left unwritten and this is equivalent to saying" " take all characters from the start or take all characters to the end of " "the string::" #: ../../source/python-textos-indices.rst:98 msgid "" "Las rebanadas con índices fuera de rango no producen error, solo " "devuelven una cadena vacía::" msgstr "" "Slices with out-of-range indices do not produce an error, they just " "return an empty string::" #: ../../source/python-textos-indices.rst:107 msgid "Bucles con cadenas de texto" msgstr "Loops with text strings" #: ../../source/python-textos-indices.rst:108 msgid "" "Un bucle ``for`` puede ir tomando los caracteres de una cadena de texto " "uno a uno::" msgstr "A ``for`` loop can take the characters of a text string one by one::" #: ../../source/python-textos-indices.rst:129 msgid "Ejercicios" msgstr "Exercises" #: ../../source/python-textos-indices.rst:131 msgid "" "Escribe una función que imprima uno a uno todos los caracteres de una " "cadena de texto que le pasemos como argumento." msgstr "" "Write a function that prints one by one all the characters of a text " "string that we pass to it as an argument." #: ../../source/python-textos-indices.rst:134 msgid "Llama a la función dos veces con dos cadenas de texto distintas." msgstr "Call the function twice with two different text strings." #: ../../source/python-textos-indices.rst:137 msgid "" "Escribe una función que acepte como argumento una cadena de texto y que " "vaya imprimiendo la cadena poco a poco desde un carácter hasta todos los " "caracteres." msgstr "" "Write a function that accepts a string as an argument and that prints the" " string bit by bit from one character to all characters." #: ../../source/python-textos-indices.rst:141 msgid "Ejemplo::" msgstr "Example::" #: ../../source/python-textos-indices.rst:156 msgid "" "Modifica la función anterior para que imprima la cadena de texto " "comenzando desde la derecha, carácter por carácter, hasta terminar::" msgstr "" "Modify the above function so that it prints the text string starting from" " the right, character by character, until ending::" #: ../../source/python-textos-indices.rst:172 msgid "" "Escribe una función que acepte como argumento una cadena de texto y que " "imprima grupos de cinco caracteres del texto desde el comienzo de la " "cadena hasta el final::" msgstr "" "Write a function that accepts a string as an argument and prints groups " "of five characters of the text from the beginning of the string to the " "end::" #: ../../source/python-textos-indices.rst:202 msgid "Pista: añade espacios al comienzo y al final de la cadena de texto." msgstr "Hint: add spaces to the beginning and end of the text string."