details about coded lines

Asked by Richi

hello, i have used the code lines below to make loops using a counter.

However i would like to know what does the line 1, line 2,line 3, line 4 and line 5 do in order that i can understand well ?

Can someone help please ?

import time

count = 1 --line1

for i in range(3):
    print "This is run number %s"%(count) --line2
    a = time.clock()

    doubleClick() /* scenario starts
    wait(1)
    hover()
    sleep(2)
    click()
    sleep(2)
    hover()
    click() */ scenario ends

    print " Run time: ",time.clock()-a,"seconds" --line3
    print "____________________________" --line 4

    count +=1 --line 5

thanks

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Eugene S (shragovich) said :
#1

Hi,

From your previous questions (below), it looks like your problem is Python more than Sikuli:
https://answers.launchpad.net/sikuli/+question/252926
https://answers.launchpad.net/sikuli/+question/252800
https://answers.launchpad.net/sikuli/+question/252488

I suggest you go through some basic Python tutorials before you go on. And if you will have a problem with a specific piece of code you might use "http://stackoverflow.com/" which is a fantastic resource for any kind of programming questions.

Cheers,
Eugene

Can you help with this problem?

Provide an answer of your own, or ask Richi for more information if necessary.

To post a message you must log in.