A list of squares · قائمة المربعات
A list of squares
Build a list one item at a time instead of printing each value.
squares.append(x) adds x to the end of the list. Printing a whole list shows it in square brackets, with commas between the items.
قائمة من المربعات
بني قائمة عنصرًا تلو الآخر بدلاً من طباعة كل قيمة.
يضيف squares.append(x) x إلى نهاية القائمة. طباعة قائمة كاملة تظهرها بين قوسين مربعين، مع فواصل بين العناصر.
Start with an empty list, add the squares of 1 to 5 with .append(), then print the list. It should show [1, 4, 9, 16, 25]. · ابدأ بقائمة فارغة، أضف مربعات الأرقام من 1 إلى 5 باستخدام .append()، ثم اطبع القائمة. يجب أن تُظهر [1, 4, 9, 16, 25].
Click Run to see the output here. · اضغط تشغيل لرؤية المخرجات هنا.