How can I connect an input to a command with the subprocess library? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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⁦❤️⁩

8th Oct 2021, 10:48 AM
Aydin
Aydin - avatar
1 Réponse
0
Can you please elaborate your question more.
10th Oct 2021, 4:36 PM
Hemath Kumar
Hemath Kumar - avatar