MCQs > IT & Programming > Python > Which is the correct way to execute a program from inside Python without having to consider how the arguments/quotes are formatted?

Python MCQs

Which of the following is the correct way to execute a program from inside Python without having to consider how the arguments/quotes are formatted?

Answer

Correct Answer: import subprocess subprocess.call(['C:\\Temp\\a b c\\Notepad.exe', 'C:\\test.txt'])

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it