0
How can I connect an input to a command with the subprocess library?
How can I connect an input to a command with the subprocess library? For example: ping: Ä°mport subprocess Ä°mport socket X = input("enter your URL : ") Y = subprocess.getoutput("ping") Print(x,y) Please correct my problem in this codeâŠâ€ïžâ©
1 Answer
0
Can you please elaborate your question more.