Skip to content · ⁨ข้ามไปยังเนื้อหา⁩

Zero to four · ⁨ศูนย์ถึงสี่⁩

English

Zero to four

Print the numbers 0, 1, 2, 3, 4, one per line, using range(5).

⚠️ range(5) starts at 0 and stops before 5 — five numbers, none of them 5. That is the same rule as a slice.

ไทย

จากศูนย์ถึงสี่

Print the numbers 0, 1, 2, 3, 4, one per line, using range(5).

⚠️ range(5) เริ่มที่ 0 และหยุด ก่อน 5 — ห้าตัวเลข ไม่มีตัวไหนเป็น 5 นั่นคือกฎเดียวกับ Slice

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

IGCSE, A-Level & AP