Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
how to open any program on python 1

how to open any program on python

June 12, 2022 by Anurag batra
import os 
os.system('notepad.exe') 

Here is what the above code is Doing:
1. It’s importing the os module.
2. It’s using the system() function in the os module to open Notepad.
3. It’s using the os module to open Notepad.

If you want to learn more about the os module, check out the official documentation.

Categories Python Examples
Post navigation
how to join a string by new line out of a list python
python defaultdict(list)
© MyEduKit - 2022 . All Rights Reserved.