What's wrong with this script?

Hello!
Can't understand
I understand the script has to do the 3 spot and return 'Hello programmer !', but nothing happens, you start the Python console and not reagiruet anything

import subprocess
p = subprocess.Popen('py.exe', stdout=subprocess.PIPE, stdin = subprocess.PIPE)
inp = p.stdin.write(b, eval(print(" Hello programmer !"))\n')
print(p.stdout.read().decode())
June 27th 19 at 15:03
1 answer
June 27th 19 at 15:05
Dobavte argument "-" minus in call options Python. Description here https://docs.python.org/3/using/cmdline.html#using...
Looked but did not understand ... - Charity.Bogisich commented on June 27th 19 at 15:08
If you know how to fix the code ... - Charity.Bogisich commented on June 27th 19 at 15:11
import subprocess
p = subprocess.Popen(['py.exe','-'],stdout=subprocess.PIPE, stdin = subprocess.PIPE)
inp = p.stdin.write(b, eval(print(" Hello programmer !"))\n')
print(p.stdout.read().decode())

But Windows can't check. And it is not checked.. - Kasey.Cruickshank commented on June 27th 19 at 15:14

Find more questions by tags Python