Skip to content · ⁨ข้ามไปยังเนื้อหา⁩

A list of squares · ⁨รายการของกำลังสอง⁩

English

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 ไปที่ท้ายรายการ. การพิมพ์รายการทั้งชุดจะแสดง它在 square brackets, with commas between the items (in square brackets, with commas between the items).

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP