Skip to content · ⁨Pular para o conteúdo⁩

The last letter · ⁨A última letra⁩

English

The last letter

word is "python". Store its last character in last, without counting the letters yourself.

A negative position counts from the end: word[-1] is the last character, word[-2] the one before it. It works whatever the length.

Português

A última letra

word é "python". Armazene seu caractere final em last, sem contar as letras manualmente.

Uma posição negativa conta do final: word[-1] é o último caractere, word[-2] o anterior. Funciona independente do comprimento.

Log in or create account · ⁨Entrar ou criar conta⁩

IGCSE, A-Level & AP