Starting from:

$30

IT244- Python System Interfaces Solved



## Assignment Instructions

1. In the Python shell, first import the `sys`, `os`, and `subprocess` modules.

      - `Refer to the following Python documentation for more on importing modules`:  Python Software Foundation. [The import system]
2. Execute `os.getlogin()`

3. Execute `os.get_exec_path

4. Take a screenshot.

5. Execute `sys.path`

6. Execute `sys.byteorder`

7. Take a screenshot.

8. Execute `os.listdir` on your C: drive

9. Use `os.mkdir` to make a new folder on your C: drive named `tempPython`

10. Take a screenshot.

11. Use `subprocess.Popen` to execute the Windows dir command and have its output placed in a text file named `pythonOut.txt` 
     

12. Open `pythonOut.txt` in Notepad and position that window next to the Python shell window where both can be seen.

13. Take a screenshot.

14. Use `subprocess.Popen` to open Windows `calc.exe` utility

    


More products