sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17329
[Question #226040]: list not defined outside of a defined function?
New question #226040 on Sikuli:
https://answers.launchpad.net/sikuli/+question/226040
Hi guys,
I'm encountering a problem with a list I add numbers too within a defined function. I added a test code that has the same problem:
def testcode():
line1= [4,5,2,3,1,3]
testcode()
print line1
I want to print line1, however it tells me that line1 is not defined .
Is there anyway for me to access the list outside of the initial function? or a way to 'transport' the list outside of the function?
sorry for the question, there probably is a really easy answer to it, i just can't get it...
thank you for the help, sikuli rocks though
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.