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.
ไทย

ตัวอักษรมีตำแหน่ง

  • String คือแถวของ ตัวอักษร
  • แต่ละตัวอักษรจะมีตำแหน่ง ซึ่งเรียกว่า index
  • Index เริ่มต้นที่ 0 ใช้ s[-1] สำหรับตัวอักษรตัว สุดท้าย

Handout · ⁨เอกสารประกอบการเรียน⁩

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP