Zero to four · ศูนย์ถึงสี่
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · หน้านี้ต้องใช้เบราว์เซอร์ล่าสุด (รองรับ SharedArrayBuffer) กรุณาอัปเดต Chrome, Edge, Firefox หรือ Safari เป็นเวอร์ชันล่าสุด
This one builds on a lesson you haven't finished yet. Do that lesson first: · อันนี้สร้างจากบทเรียนที่คุณยังไม่เสร็จสิ้น ให้ทำบทเรียนนั้นก่อน:
Python Basics · Counting loops · วนซ้ำแบบนับจำนวน →
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
Print the numbers 0, 1, 2, 3, 4, one per line, using range(5).
Click Run to see the output here. · คลิก Run เพื่อดูผลลัพธ์ที่นี่