Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

robot append to list with for loop

Some Test
	${max_num}  Set Variable  5
    @{list_to_populate}  Create List  #   create empty list to populate with for-loop
    FOR  ${i}  IN RANGE  1  ${max_num}
    Append To List  ${list_to_populate}  ${i}
    END

	Log Many  @{list_to_populate}
    # 1  2  3  4
 
PREVIOUS NEXT
Tagged: #robot #append #list #loop
ADD COMMENT
Topic
Name
5+5 =