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

CKTIS / Python

Base de conocimientos — Python

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

Entradas: 583

Python

ord()

Devuelve el valor numérico de un carácter de str o de un byte en bytes o bytearray.

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

pow()

Eleva la base a una potencia, opcionalmente módulo mod.

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

property()

Leer box.area llama al getter con la instancia self y da 3 · 4 = 12.

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

repr()

Devuelve un texto de inspección mediante `__repr__`.

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

reversed()

Crea un iterador inverso mediante `__reversed__` o la longitud y los índices de la secuencia.

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

round()

Redondea un número a una posición decimal elegida.

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

set()

Crea un conjunto mutable de elementos que admiten hash.

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

setattr()

Asigna el atributo nombrado por la cadena y devuelve None.

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

slice()

Guarda inicio, fin excluido y paso para un corte posterior.

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

sorted()

Devuelve una lista nueva ordenada mediante comparaciones de menor que.

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

staticmethod()

Expone una función en el espacio de la clase sin añadir automáticamente self o cls.

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

str: representación textual de un objeto

str crea una cadena Unicode. Convertir un número en texto no realiza operaciones aritméticas; convertir bytes en texto exige elegir conscientemente una codificación.

Básico · Python 3.14
Python

sum()

Suma los elementos con start como sumando inicial.

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

super()

Crea un intermediario que busca después de la clase actual en el orden de resolución de métodos del receptor.

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

tuple()

Construye una tupla inmutable y ordenada desde un iterable.

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

type()

Con un argumento devuelve el tipo real del objeto.

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

vars()

Con argumento obtiene el `__dict__` del objeto.

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

zip()

Agrupa los elementos correspondientes en tuplas durante la iteración.

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

Palabra clave as

Vincula un nombre según la sentencia.

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

Palabra clave assert

Comprueba una invariante de diagnóstico cuando `__debug__` es verdadero.

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

Palabra clave async

Una definición async def sin yield crea una función de corrutina cuya llamada devuelve una corrutina sin ejecutar el cuerpo.

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

Palabra clave await

En una corrutina o generador asíncrono recibe el resultado o la excepción de un objeto esperable.

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