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.

العربية

صفر إلى أربعة

اطبع الأرقام 0، 1، 2، 3، 4، واحد في كل سطر، باستخدام range(5).

⚠️ range(5) تبدأ من 0 وتتوقف قبل 5 — خمسة أرقام، ولا أحد منها 5. هذا هو نفس قاعدة التقطيع (slice).

Log in or create account · ⁨تسجيل الدخول أو إنشاء حساب⁩

IGCSE, A-Level & AP