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
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