OS-based program into a menu-driven program
Problem statement: "Convert the OS based program into a menu-driven program using python code which will execute the required user query when the user will give the input as a text."
The steps are as follows:
1. Create an environment on the anaconda.
I have created an environment named "cb".
2. Make sure all the necessary libraries are present in the environment, otherwise install them using conda or pip.
3. Libraries used in this task are "os" and "pyttsx3".
4. Set the path of all the os based commands you want to execute from the command line, into the environment variable.
5. My program prompts the voice message as well as text messages to enter the task to be performed.
6. Once the user enters the task, the requires query is performed and again the user is prompted for continuing or ending the program.
7. The program is able to perform tasks like opening MS office's applications, different browsers, different media players, text editors, etc.
8. When the user query for a browser, he is prompted with a choice of browsers that the user wants to open.
9. Similarly, for media players and text editors also, users are given options accordingly.
Code:
Github link: https://github.com/ChitranshBose/python_training