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.
1. Python 3.9.1
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.
Submitted by Raman Kishore Singh (RamanKishore)
Download packets of source code on Coders Packet