python os open file in text editor code example Example: python os open notepad import os os.system("C:\\Windows\\notepad.exe")