medium
Automate File Organization
Generate a Python script to sort files in a directory by extension.
📝 Contenu du Prompt
Write a Python script that scans a specific directory and moves files into subfolders based on their file extensions (e.g., .jpg to 'Images', .txt to 'Documents'). Include comments explaining the code.