Count to ten · عد إلى عشرة
Count to ten
Print the whole numbers from 1 to 10, each on its own line.
A for loop repeats its indented lines once for every value it is given. range(1, 4) gives 1, 2, 3: it stops before its second number, so choose that number with care.
العد إلى عشرة
اطبع الأعداد الصحيحة من 1 إلى 10، كل واحد في سطر خاص به.
حلقة for تكرر أسطرها المهجنة مرة واحدة لكل قيمة تُعطى لها. range(1, 4) يعطي 1، 2، 3: تتوقف قبل الرقم الثاني، لذا اختر هذا الرقم بعناية.
Use a for loop to print the numbers 1 to 10, one per line. · استخدم حلقة for لطباعة الأرقام من 1 إلى 10، واحدًا لكل سطر.
Click Run to see the output here. · اضغط تشغيل لرؤية المخرجات هنا.