Coders Packet

Creating Directory in Python

By Raman Kishore Singh

This Python code helps to create a directory to the desired location. We can give any name to the directory.

The directory is important to store all our important files and documents. This Python code helps to create a folder of any name at any desired location.


Software Requirements:

1. Python 3.9.1

How to use:

You can run this code in the IDLE(python 3.9).

First, you have to import os the python file by writing import os.

After importing os in the next line you can make a directory by writing os.mkdir(" Here write the name and location of the folder").

Now save and run the code and you will see your directory has been created.


Download Complete Code


No comments yet