Skip to main content
Skip table of contents

list

Features

  • The items in a list can be changed and ordered.
  • A list can be indexed and sliced.
  • append, insert, extend, and + operators
  • count, remove, and sort operators

Example

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.