Skip to main content
Skip table of contents

tuple

Features

Tupule is similar to a list but is faster at processing since it is read-only.

Example

PY
colors = ("red", "green", "blue")
numbers = (1, 3, 5, 7, 9)

def fnMinMax(numbers):
	numbers.sort()
	return (numbers[0], numbers[-1])
minmax = fnMinMax([4,1,2,9,5,7])
tp_log("Min Value= " + str(minmax[0]))
	#expected result: Min Value = 1
tp_log("Max Value= "+ str(minmax[1]))
	#expected result: Max Value = 9
JavaScript errors detected

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

If this problem persists, please contact our support.