Skip to content · ⁨الانتقال إلى المحتوى⁩

The last letter · ⁨الحرف الأخير⁩

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.

العربية

الحرف الأخير

الكلمة هي "python". احفظ حرفها الأخير في last، دون عداد الأحرف بنفسك.

الموقع السلبي يُحسب من النهاية: word[-1] هو الحرف الأخير، وword[-2] هو الذي قبله. تعمل بغض النظر عن الطول.

Log in or create account · ⁨تسجيل الدخول أو إنشاء حساب⁩

IGCSE, A-Level & AP