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.
العربية
صفر إلى أربعة
اطبع الأرقام 0، 1، 2، 3، 4، واحد في كل سطر، باستخدام range(5).
⚠️ range(5) تبدأ من 0 وتتوقف قبل 5 — خمسة أرقام، ولا أحد منها 5. هذا هو نفس قاعدة التقطيع (slice).
Print the numbers 0, 1, 2, 3, 4, one per line, using range(5). · اطبع الأرقام 0، 1، 2، 3، 4، واحد في كل سطر، باستخدام range(5).
Click Run to see the output here. · اضغط تشغيل لرؤية المخرجات هنا.