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.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response