medium
Automate File Organization
Generate a Python script to sort files in a directory by extension.
📝 Contenuto del 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.