Skip to content · ⁨Lompat ke konten⁩

The last letter · ⁨Huruf terakhir⁩

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.

Bahasa Indonesia

Huruf terakhir

word is "python". Simpan karakter terakhir-nya dalam last, tanpa menghitung huruf-hurufnya sendiri.

Posisi negatif dihitung dari akhir: word[-1] adalah karakter terakhir, word[-2] adalah sebelumnya. Ini bekerja berapapun panjangnya.

Log in or create account · ⁨Masuk atau buat akun⁩

IGCSE, A-Level & AP