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: 2024-12-10 17:01+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-textos-metodos.rst:10 msgid "Métodos de cadenas de texto" msgstr "String methods" #: ../../source/python-textos-metodos.rst:11 msgid "" "Los `métodos de las cadenas de texto " "`__ " "son funciones que trabajan asociadas a las cadenas de texto, que se usan " "como argumento." msgstr "" "The `string methods " "`__ " "are functions that work on strings, which are used as argument." #: ../../source/python-textos-metodos.rst:16 msgid "" "Al estar asociadas a las cadenas de texto, se las llama añadiendo un " "punto y el nombre detrás de la cadena de texto o detrás de la variable " "que contiene la cadena de texto. El argumento de la función será la " "cadena de texto que precede al punto." msgstr "" "As they are associated with text strings, they are called by adding a " "period and the name after the text string or after the variable that " "contains the text string. The argument of the function will be the text " "string that precedes point." #: ../../source/python-textos-metodos.rst:21 msgid "" "Esta es una nueva forma de usar funciones, que se estudiará con mayor " "profundidad en el apartado dedicado a las Clases en Python y a la " "programación orientada a objetos." msgstr "" "This is a new way of using functions, which will be studied in greater " "depth in the section dedicated to Classes in Python and object-oriented " "programming." #: ../../source/python-textos-metodos.rst:25 msgid "Ejemplos::" msgstr "Examples::" #: ../../source/python-textos-metodos.rst:52 msgid "" "Hay muchos más métodos de cadena de texto, pero por ahora con estos que " "se han listado podremos hacer la mayoría de las operaciones que " "necesitamos." msgstr "" "There are many more string methods, but for now with the ones listed we " "will be able to do most of the operations we need." #: ../../source/python-textos-metodos.rst:58 msgid "Sentencia ``in``" msgstr "``in`` statement" #: ../../source/python-textos-metodos.rst:59 msgid "" "La sentencia ``in`` sirve para conocer si un texto se encuentra dentro de" " otro texto::" msgstr "" "The ``in`` statement is used to find out if a text is inside another " "text::" #: ../../source/python-textos-metodos.rst:70 msgid "" "La sentencia es sensible a mayúsculas y minúsculas, por lo que a veces " "puede ser interesante utilizar el método ``.lower()`` para transformar " "todas las frases a minúsculas y que las cadenas de texto coincidan::" msgstr "" "The statement is case sensitive, so sometimes it can be interesting to " "use the ``.lower()`` method to transform all sentences to lower case and " "match strings::" #: ../../source/python-textos-metodos.rst:84 msgid "Ejercicios" msgstr "Exercises" #: ../../source/python-textos-metodos.rst:86 msgid "" "Escribe una función que acepte una cadena de texto como argumento y que " "retorne la cadena de texto en mayúsculas y en minúsculas alternas. La " "primera letra debe ser mayúscula, la segunda minúscula la tercera " "mayúscula, la cuarta minúscula y seguir así la secuencia hasta el final " "del texto." msgstr "" "Write a function that accepts a string as an argument and returns the " "string in alternating uppercase and lowercase. The first letter must be " "uppercase, the second lowercase, the third uppercase, the fourth " "lowercase, and so on until the end of the text." #: ../../source/python-textos-metodos.rst:92 #: ../../source/python-textos-metodos.rst:119 msgid "Ejemplo::" msgstr "Example::" #: ../../source/python-textos-metodos.rst:97 #: ../../source/python-textos-metodos.rst:124 #: ../../source/python-textos-metodos.rst:144 #: ../../source/python-textos-metodos.rst:167 msgid "Pista::" msgstr "Clue::" #: ../../source/python-textos-metodos.rst:111 msgid "" "La variable 'mayuscula' debe cambiar de valor de True a False y viceversa" " cada vez que se añada una nueva letra a la variable 'texto_nuevo'." msgstr "" "The variable 'uppercase' must change value from True to False and " "vice versa each time a new letter is added to the variable 'new_text'." #: ../../source/python-textos-metodos.rst:116 msgid "" "Modifica el programa anterior para que solo sean mayúsculas la primera " "letra y las letras que estén en un índice múltiplo de 3." msgstr "" "Modify the above program so that only the first letter and letters that " "are at a multiple index of 3 are uppercase." #: ../../source/python-textos-metodos.rst:135 msgid "" "Escribe un programa que pida una frase al usuario que describa a Lionel " "Messi sin escribir en esa frase ninguna palabra tabú." msgstr "" "Write a program that asks the user for a sentence that describes Lionel " "Messi without writing any taboo words in that sentence." #: ../../source/python-textos-metodos.rst:138 msgid "Las palabras tabú son Argentina, Barcelona, futbol." msgstr "Taboo words are Argentina, Barcelona, ​​soccer." #: ../../source/python-textos-metodos.rst:140 msgid "" "El programa debe detectar si se ha escrito alguna palabra tabú " "independientemente de las mayúsculas o minúsculas." msgstr "" "The program must detect if any tabu words have been typed regardless of " "case." #: ../../source/python-textos-metodos.rst:157 msgid "" "Escribe una función que acepte una cadena de texto como argumento y que " "imprima la cadena de texto con todas las vocales reemplazadas por otra " "vocal que establezcamos en el segundo argumento. Llama a la función con " "varias frases de ejemplo para probar su funcionamiento." msgstr "" "Write a function that accepts a string as an argument and prints the " "string with all vowels replaced by another vowel we set in the second " "argument. Call the function with several example sentences to test how it" " works." #: ../../source/python-textos-metodos.rst:163 msgid "Por defecto la vocal de reemplazo será la 'e'." msgstr "By default the replacement vowel will be 'e'." #: ../../source/python-textos-metodos.rst:165 msgid "Para facilitar el programa transformaremos el texto a minúsculas." msgstr "To facilitate the program we will transform the text to lower case."