3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

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

Python
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