How to Create Multiple Folder Using Python
Using python we can give instruction to the computer to perform certain task. In this article you will learn to create multiple folder using python.
For this download thonny software from https://thonny.org/ from following website and open thonny. If you got any problem then here is video. It is in Nepali Language.
To Create 1 Folder
import os
os.mkdir(“Hello”)
This program will create folder name Hello.
If you want to create multiple folder, the simple and easy way is to use loop.
import os
for i in range(100000):
…. os.mkdir(str(i+1))
Run your python program. It will create folder 1 Lakhs time for you.