ข้ามไปยังเนื้อหา
English

Putting items in order

  • Sorting arranges a list into order, usually smallest first.
  • The key move is a swap: exchange two items.
  • In Python: a[i], a[j] = a[j], a[i] swaps two list items in one line.

เอกสารประกอบการเรียน

เข้าสู่ระบบหรือสร้างบัญชี

IGCSE, A-Level & AP