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