← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #255477]: Extreme beginner : to incremente a value within a loop

 

Question #255477 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255477

    Status: Open => Answered

Eugene S proposed the following answer:
Hi,

You should create a "for" loop. The basic usage will look like this:


for iteration in range(number of pages - 1):
    #the "iteration" variable will increase with every iteration
    #below will print the current "iteration" value
    print iteration


Eugene

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.