I run a python script test.py
by using python subprocess. I want to send two strings 'John', 'Henry'
as argument and read the argument values from the test.py. I want something like this
subprocess.call(['python3', 'test.py']) #add two names 'John', 'Henry' as argument
test.py
print(name1) #print John
print(name2) #print Henry
How can I do this?