Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 3

54 bytes added, 19:14, 20 May 2019
PART 2 - Running System Commands with Subprocess
:#Create a new python file for testing.
:#Import the '''''os''''' module in your python file.
:#You can issue operating system commands by using the '''system()''' function. Try it:<source lang="python">
os.system('ls')