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

for

Features

'for' repeats an operation within the specified repeating range.

Syntax

for <item> in <sequential object S>:

      <syntax>

Example

Python
x=0
for i in range(0, 3): # i is 0 -> 1 -> 2 
	x= x + 1 

sum = 0
for i in range(0, 10):
	sum = sum + i
tp_log("sum = " + str(sum))
#expected result:
#sum = 45