Skip to content · ⁨コンテンツへスキップ⁩
English

Letters have positions

  • A string is a row of characters.
  • Each character has a position, called an index.
  • Indexes start at 0. Use s[-1] for the last character.
日本語

文字には位置がある

  • ストリングは文字の並びです。
  • 各文字にはインデックスと呼ばれる位置があります。
  • インデックスは0から始まります。最後の文字にはs[-1]を使用します。

Handout · ⁨プリント⁩

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP