I think you want something like this:
PHP Code:
import A
answer = raw_input('please enter string for variable a: ')
words = ['word1','word2','word3']
value = A.func(words, answer)
print value
You actually don't need value I just did that for readability. you could do this instead:
PHP Code:
import A
answer = raw_input('please enter string for variable a: ')
words = ['word1','word2','word3']
print A.func(words, answer)
Also if this is python 3.0 make sure you use print as a function instead like print( A.func(answer, words) )
Hope that helps.
Bookmarks