The OS module in Python provides the functions to create, remove, fetching, change and identify the directory (folder), etc. All we need is import os to do these tasks.
To show the Current Working Directory : os.getcwd().
To Make a New Directory : os.mkdir().
To Change a Directory : os.chdir().
To Remove a Directory : os.rmdir().
To List out the Directories: os.listdir().
To Rename a Directory : os.rename().
OUTPUT