Created
July 12, 2023 01:24
-
-
Save n1ckfg/20f6ec91dd40c1efe6c836600e028228 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| with open("names.txt", "r") as file: | |
| lines = file.readlines() | |
| for line in lines: | |
| folder_name = line.strip().replace(" ", "_") | |
| os.makedirs(folder_name, exist_ok=True) | |
| print(f"Created folder: {folder_name}") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment