Hi All,
I am trying to do something new in python but at this moment i really don't know if it is possible.
I have a very simple python script that will simply prompt for any text and when the text it entered by a user the script will display it on a screen.
What i am trying to do is to start this simple script from another python script, read the prompt and write something to the first script. Let's say that the answer will be hardcoded to simple "Hello". In that case if the other script that starts the simple one and prints the result would print
I will keep looking for a solution for this problem. I will really appreciate any hints from you, especially if it is actually possible to do :-)
Thanks in advance for any help.
Best regards,
I am trying to do something new in python but at this moment i really don't know if it is possible.
I have a very simple python script that will simply prompt for any text and when the text it entered by a user the script will display it on a screen.
Code:
myInput = raw_input("Write something:")
print myInput
Code:
Write something: Hello
Thanks in advance for any help.
Best regards,
Comment