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

    Status: Open => Answered

RaiMan proposed the following answer:
empID = "123456"

if len(empID) > 3 and len(empID) < 9:
     print "empID ok"
else:
     print "empID should have 4 to 8 digits"

to check it is a number:

try:
    print "empID is:", int(empID)
except:
    print "empID not numbers only"

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to