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-metodos.rst:10 msgid "Métodos de listas" msgstr "list methods" #: ../../source/python-listas-metodos.rst:11 msgid "" "Los `métodos de las listas " "`__" " son funciones asociadas a las listas que se pueden utilizar para " "manejarlas. Se llaman añadiendo un punto y el nombre del método::" msgstr "" "The `methods of lists " "`__" " are functions associated with lists that can be used to handle lists. They " "are called by adding a period and the name of the method::" #: ../../source/python-listas-metodos.rst:44 msgid "Funciones con listas" msgstr "functions with lists" #: ../../source/python-listas-metodos.rst:48 msgid "" "La función ``max(lista)`` devuelve el elemento con mayor valor de todos los " "elementos de la lista::" msgstr "" "The ``max(list)`` function returns the element with the greatest value of " "all the elements in the list::" #: ../../source/python-listas-metodos.rst:56 msgid "" "La función ``min(lista)`` devuelve el elemento con menor valor de todos los " "elementos de la lista::" msgstr "" "The ``min(list)`` function returns the element with the least value of all " "the elements in the list::" #: ../../source/python-listas-metodos.rst:64 msgid "" "La función ``sum(lista)`` devuelve la suma de todos los números que contiene" " una lista::" msgstr "" "The ``sum(list)`` function returns the sum of all numbers contained in a " "list::" #: ../../source/python-listas-metodos.rst:72 msgid "" "La función ``len(lista)`` devuelve el número de elementos que contiene una " "lista::" msgstr "" "The ``len(list)`` function returns the number of elements contained in a " "list::" #: ../../source/python-listas-metodos.rst:80 msgid "" "La función ``sorted(lista)`` devuelve otra lista ordenada de menor a mayor::" msgstr "" "The ``sorted(list)`` function returns another list sorted from smallest to " "largest::" #: ../../source/python-listas-metodos.rst:89 msgid "Convierte un iterable en una lista::" msgstr "Convert an iterable to a list::" #: ../../source/python-listas-metodos.rst:99 msgid "Ejercicios" msgstr "Exercises" #: ../../source/python-listas-metodos.rst:101 msgid "" "Escribe una función que calcule el promedio de una lista de números. El " "promedio es igual a la suma de los elementos dividido entre el número de " "elementos." msgstr "" "Write a function that calculates the average of a list of numbers. The " "average is equal to the sum of the elements divided by the number of " "elements." #: ../../source/python-listas-metodos.rst:105 msgid "" "Llama a la función para calcular el promedio de las siguientes listas::" msgstr "Call the function to calculate the average of the following lists::" #: ../../source/python-listas-metodos.rst:112 msgid "" "Escribe una función que acepte una lista como argumento y que retorne otra " "lista que contenga solo los números pares." msgstr "" "Write a function that accepts a list as an argument and returns another list" " containing only the even numbers." #: ../../source/python-listas-metodos.rst:115 msgid "" "Debes crear una nueva lista vacía y añadirle los números pares de la lista " "pasada como argumento." msgstr "" "You must create a new empty list and add the even numbers from the passed " "list as an argument to it." #: ../../source/python-listas-metodos.rst:118 msgid "Llama a la función con las siguientes listas como argumentos::" msgstr "Calls the function with the following lists as arguments:" #: ../../source/python-listas-metodos.rst:125 msgid "" "Escribe una función que acepte una lista como argumento y que retorne otra " "lista con el elemento menor, el elemento mayor, el número de elementos y la " "suma de todos los elementos." msgstr "" "Write a function that accepts a list as an argument and returns another list" " with the smallest element, the largest element, the number of elements, and" " the sum of all elements." #: ../../source/python-listas-metodos.rst:129 msgid "Llama a la función con las siguientes listas como argumento::" msgstr "Calls the function with the following lists as argument:"