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.

No alt text provided for this image

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. 

No alt text provided for this image

5. My program prompts the voice message as well as text messages to enter the task to be performed.

No alt text provided for this image

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.

No alt text provided for this image

8. When the user query for a browser, he is prompted with a choice of browsers that the user wants to open. 

No alt text provided for this image

9. Similarly, for media players and text editors also, users are given options accordingly.

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Code:

No alt text provided for this image
No alt text provided for this image

Github link: https://github.com/ChitranshBose/python_training

To view or add a comment, sign in

Others also viewed

Explore content categories