Skip to content · ⁨Saltar al contenido⁩

The first three letters · ⁨Las primeras tres letras⁩

English

The first three letters

word is "python". Store its first three characters in part using a slice.

⚠️ A slice stops before its second number. word[:3] gives three characters — positions 0, 1, 2 — and never position 3. So the number you write is the COUNT you want, not the last position.

Español

Las primeras tres letras

La palabra es "python". Almacena sus primeros tres caracteres en part utilizando un corte.

⚠️ Un corte termina antes de su segundo número. word[:3] proporciona tres caracteres — posiciones 0, 1, 2 — y nunca incluye la posición 3. Por lo tanto, el número que escribas es la CANTIDAD que deseas, no la última posición.

Log in or create account · ⁨Iniciar sesión o crear cuenta⁩

IGCSE, A-Level & AP