You can use the OS module to interact with your computer’s operating system in a number of ways. Command-line prompts are available for you to use.
You will see various uses for the OS library in Python in this article. If you are familiar with command-line prompts, I will provide the equivalent.
Working with Files and Directories
How do I get the current working directory?
Use theos.getcwd() function to get the current working directory.
Equivalent with the pwd command for Unix-like operating systems and cd for Windows operating systems