Base de conocimientosCentro de exámenes
ESEspañol
Elegir idioma13

CKTIS / Base de conocimientos

Base de conocimientos

Sintaxis, operadores y conceptos de programación. Encuentra una explicación, consulta un ejemplo y sigue aprendiendo.

Entradas: 5788

Python

dict.values

Devuelve una vista dinámica de valores en orden de inserción de las claves.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

function.__doc__

Este atributo contiene la documentación de la función o None si no tiene docstring.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

function.__name__

Este atributo contiene el nombre simple de la función dado en su definición.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

functools.cache

Memoriza resultados sin límite como lru_cache(maxsize=None).

Intermedio · Python 3.14; repository image, production runtime not attested
Python

functools.cached_property

El primer acceso calcula el valor y lo guarda con el mismo nombre en el `__dict__` modificable de la instancia.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

functools.cmp_to_key

Adapta un comparador de dos argumentos a una clave de ordenación unaria.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

functools.lru_cache

Almacena resultados por claves hashables y al llenarse expulsa la entrada usada hace más tiempo.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

functools.partial

Devuelve un objeto invocable con argumentos prefijados sin ejecutar func.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

functools.partialmethod

Define en la clase un descriptor de variante de método con argumentos prefijados.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

functools.reduce

Reduce desde la izquierda llamando a la función con el acumulador y el siguiente elemento.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

functools.singledispatch

Elige la implementación por el tipo del primer argumento posicional.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

functools.singledispatchmethod

Elige el método por el primer argumento posicional tras self o cls.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

functools.total_ordering

Completa comparaciones de orden ausentes a partir de `__lt__` por ejemplo y una igualdad `__eq__` coherente.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

functools.update_wrapper

Modifica los metadatos de la envoltura y devuelve esa misma función.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

functools.wraps

Se aplica a la función envolvente interna al escribir un decorador.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

generator.send

send proporciona el resultado de la expresión yield suspendida y devuelve el siguiente valor producido.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

heapq.heapify

Construye en tiempo lineal un montículo de mínimos a partir de una lista.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

heapq.heappop

Quita y devuelve el elemento más pequeño de un montículo de mínimos válido.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

heapq.heappush

Añade un elemento a una lista vacía o a un montículo de mínimos válido y devuelve None.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

heapq.heappushpop

Combina la inserción y la extracción del mínimo conservando el tamaño del montículo.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

heapq.heapreplace

Extrae la raíz anterior y conserva el nuevo elemento en un montículo del mismo tamaño.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

heapq.merge

Fusiona fuentes ordenadas en un iterador que obtiene datos según se necesitan.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

heapq.nlargest

Selecciona hasta n elementos originales por clave descendente para una clasificación.

Intermedio · Python 3.14; repository image, production runtime not attested
Python

heapq.nsmallest

Devuelve hasta n elementos originales por clave ascendente, por ejemplo las ofertas más baratas.

Intermedio · Python 3.14; repository image, production runtime not attested