This is creating a Folder.

                                 This Code Creating a 10 Folder.

     This Code creating a 10 folder. You can change the folder path or creating folders.



#           This is create a folder
import os

# Specify the path to your desktop
desktop_path = r'C:\Users\hp\OneDrive\Desktop'

# Create 10 folders on the desktop
for i in range(1,10):
folder_name = f"Folder_{i}"
folder_path = os.path.join(desktop_path, folder_name)
os.makedirs(folder_path)

Comments

Popular posts from this blog

Screen Recording using python.

wallpaper changer.

Find any color from image using python