Skip to main content
Skip table of contents

list

기능

  • 값들의 나열로, item은 변경 가능하며 순서가 있습니다.

  • 인덱싱 및 슬라이싱이 가능합니다.

  • append, insert, extend, +연산자

  • count, remove, sort 연산자

예제

PY
colors = ["red", "green", "blue"]
tp_log(colors[0]+","+colors[1]+","+colors[2])
      #expected print result: red,green,blue
 
numbers = [1, 3, 5, 7, 9]
sum = 0
for number in numbers:
    sum += number
tp_log( str(sum) )
      #expected result: 25
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.