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. · לחץ על הרץ כדי לראות את התוצא כאן.