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