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

str.find

Devuelve el menor índice de la subcadena dentro de los límites de búsqueda.

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

str.format

Inserta argumentos posicionales o con nombre en los campos de la plantilla y aplica sus especificaciones de formato.

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

str.format_map

Lee los campos con nombre directamente del mapeo suministrado.

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

str.index

Devuelve el primer índice de la subcadena dentro de los límites, contado desde el inicio del texto original.

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

str.isalnum

Devuelve un booleano para texto no vacío compuesto solo por letras o caracteres numéricos Unicode.

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

str.isalpha

Exige texto no vacío formado solo por letras Unicode.

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

str.isdigit

Comprueba si un texto no vacío contiene solo dígitos Unicode. ² es un dígito pero no decimal: isdigit da True e isdecimal False.

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

str.isspace

Devuelve True solo para texto no vacío compuesto de espacios en blanco.

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

str.join

Une las cadenas de un iterable colocando el separador receptor entre posiciones.

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

str.lower

Devuelve el texto convertido a minúsculas Unicode.

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

str.lstrip

Elimina a la izquierda espacios en blanco o, con chars, cualquier carácter de ese conjunto.

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

str.removeprefix

Elimina una sola aparición del prefijo exacto al comienzo.

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

str.removesuffix

Elimina una sola vez el sufijo exacto.

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

str.replace

Sustituye apariciones literales no solapadas de old por new.

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

str.rfind

Devuelve el mayor índice inicial de una subcadena entre start y end.

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

str.rsplit

Divide desde la derecha. Por defecto sep=None usa grupos de espacios en blanco y maxsplit=−1 no limita los cortes.

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

str.rstrip

Elimina por la derecha espacios en blanco o caracteres del conjunto opcional chars.

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

str.split

Divide el texto en una lista de campos.

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

str.splitlines

Divide el texto en líneas. CRLF forma un solo límite y no aparece una línea vacía entre one y two.

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

str.startswith

Comprueba el principio exacto del texto o de la parte delimitada por start y end opcionales, excluido end.

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

str.strip

Elimina en ambos extremos los espacios en blanco o los caracteres individuales de chars opcional.

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

str.title

Inicia cada grupo de letras en caja de título y convierte las siguientes a minúsculas.

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

str.upper

Devuelve el texto en mayúsculas Unicode.

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

str.zfill

Rellena con ceros ASCII hasta el ancho mínimo width.

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