If we have to create thousand folder manual folder creation is time consuming task but by using python we can create folders or directories in computer at one click. In idle write below code.
# import module csv
import csv
# import module os
import os
# create list
c=[]
# open file with location as read mode and append name of folder
with open('test block.csv', mode ='r')as file:
csvfile = csv.reader(file)
for lines in csvfile:
c.append(lines)
i=1
while i<len(c):
path=os.path.join("location where folder to be created","name of folder")
# make dirs for folder creation
os.makedirs(path)
i=i+1