msgid "" msgstr "" "Project-Id-Version:Tecno Recursos 2023" "Report-Msgid-Bugs-To:" "POT-Creation-Date:2023-07-26 11:40+0200" "PO-Revision-Date:YEAR-MO-DA HO:MI+ZONE" "Last-Translator:FULL NAME " "Language:en" "Language-Team:en " "Plural-Forms:nplurals=2; plural=(n != 1)" "MIME-Version:1.0" "Content-Type:text/plain; charset=utf-8" "Content-Transfer-Encoding:8bit" "Generated-By:Babel 2.9.0" #: ../../source/python-listas-indices.rst:10 msgid "Índices de listas" msgstr "list indices" #: ../../source/python-listas-indices.rst:11 msgid "" "Para obtener y manejar los datos de una lista se pueden utilizar índices y " "rebanadas igual que se utilizaban con las cadenas de texto::" msgstr "" "To get and manage the data in a list, you can use indices and slices just " "like you used with strings::" #: ../../source/python-listas-indices.rst:22 msgid "Este esquema puede ayudar a entender la posición de los índices::" msgstr "This schematic can help to understand the position of the indices::" #: ../../source/python-listas-indices.rst:29 msgid "" "Los índices entre corchetes devuelven el elemento que se encuentra en esa " "posición de la lista, comenzando por la primera posición en el índice cero." msgstr "" "Indices in brackets return the element at that position in the list, " "starting at the first position at index zero." #: ../../source/python-listas-indices.rst:33 msgid "Rebanadas" msgstr "slices" #: ../../source/python-listas-indices.rst:34 msgid "" "Por su parte las rebanadas devuelven otra lista compuesta por los elementos " "que se encuentren entre dos índices::" msgstr "" "On the other hand, the slices return another list composed of the elements " "that are between two indices:" #: ../../source/python-listas-indices.rst:54 msgid "Modificación de elementos" msgstr "Modification of elements" #: ../../source/python-listas-indices.rst:55 msgid "" "Al contrario que con las cadenas de texto, en las listas si que se pueden " "modificar sus elementos cambiándolos por otro valor::" msgstr "" "Unlike with text strings, in lists you can modify their elements by changing" " them to another value::" #: ../../source/python-listas-indices.rst:71 msgid "Sentencia ``del``" msgstr "Sentence ``of``" #: ../../source/python-listas-indices.rst:72 msgid "" "La sentencia ``del`` (palabra que proviene de delete) elimina un elemento de" " la lista que se encuentre en una posición determinada::" msgstr "" "The statement ``del`` (word that comes from delete) removes an element from " "the list that is in a certain position::" #: ../../source/python-listas-indices.rst:84 msgid "También se pueden utilizar rebanadas con la sentencia ``del``::" msgstr "You can also use slices with the ``del``:: statement" #: ../../source/python-listas-indices.rst:93 msgid "Ejercicios" msgstr "Exercises" #: ../../source/python-listas-indices.rst:95 msgid "" "Escribe un programa que defina una lista con los 10 primeros números primos." " A continuación debe imprimir el primer número primo, el tercero y el " "séptimo." msgstr "" "Write a program that defines a list with the first 10 prime numbers. Next " "you need to print the first, third, and seventh prime numbers." #: ../../source/python-listas-indices.rst:99 msgid "" "Modifica el programa anterior para que imprima la suma de los 4 primeros " "números primos. Debes programar un bucle que cuente desde 0 hasta 3 y " "utilizar estos números como índices para recuperar los números primos de la " "lista." msgstr "" "Modify the above program so that it prints the sum of the first 4 prime " "numbers. You must program a loop that counts from 0 to 3 and use these " "numbers as indices to retrieve the prime numbers from the list." #: ../../source/python-listas-indices.rst:104 msgid "" "Escribe un programa que defina una lista con tres nombres. El programa debe " "imprimir la lista, modificar el segundo nombre y volver a imprimir la lista " "modificada." msgstr "" "Write a program that defines a list with three names. The program should " "print the list, modify the second name, and reprint the modified list." #: ../../source/python-listas-indices.rst:108 msgid "" "Escribe un programa que defina una lista con las primeras 6 letras del " "abecedario en mayúsculas." msgstr "" "Write a program that defines a list with the first 6 letters of the alphabet" " in uppercase." #: ../../source/python-listas-indices.rst:111 msgid "Imprime una sublista desde la 'B' hasta la 'D'." msgstr "Prints a sublist from 'B' to 'D'." #: ../../source/python-listas-indices.rst:113 msgid "Imprime una sublista desde la 'C' hasta el final." msgstr "Prints a sublist from 'C' to the end." #: ../../source/python-listas-indices.rst:115 msgid "" "Modifica el programa anterior para que borre las posiciones pares de la " "lista y que luego imprima la lista resultante::" msgstr "" "Modify the above program so that it deletes the even positions from the list" " and then prints the resulting list::" #: ../../source/python-listas-indices.rst:120 msgid "" "Ten en cuenta que a medida que se borran elementos de la lista, los " "elementos posteriores cambian de posición." msgstr "" "Note that as items are removed from the list, subsequent items change " "position." #: ../../source/python-listas-indices.rst:123 msgid "" "Escribe un programa que defina una lista con las primeras 6 letras del " "abecedario en mayúsculas. A continuación un bucle ``for`` debe cambiar cada " "una de las letras por su valor en minúsculas gracias al método " "``.lower()```." msgstr "" "Write a program that defines a list with the first 6 letters of the alphabet" " in uppercase. Then a ``for`` loop should change each letter to its " "lowercase value thanks to the ``.lower()``` method." #: ../../source/python-listas-indices.rst:128 msgid "" "El bucle for debe medir la longitud de la lista con la función ``len()``." msgstr "" "The for loop must measure the length of the list with the ``len()`` " "function." #: ../../source/python-listas-indices.rst:131 msgid "Pista::" msgstr "Clue::"