My first serious programming language โ used for scripting, automation, backend development, and data processing. The foundation of my coding journey.
A Python script that automates repetitive file management tasks โ renaming, sorting, and organizing files automatically.
A simple web application built with Flask demonstrating routing, templates, and form handling.
Python scripts used to prototype game logic and algorithms before implementing them in Godot's GDScript.
# File organizer automation script
import os
import shutil
FOLDERS = {
'Images': ['.jpg', '.jpeg', '.png', '.gif', '.webp'],
'Videos': ['.mp4', '.mov', '.avi', '.mkv'],
'Documents': ['.pdf', '.docx', '.txt', '.xlsx'],
'Code': ['.py', '.js', '.html', '.css', '.gd'],
}
def organize_folder(path):
for filename in os.listdir(path):
ext = os.path.splitext(filename)[1].lower()
for folder, extensions in FOLDERS.items():
if ext in extensions:
dest = os.path.join(path, folder)
os.makedirs(dest, exist_ok=True)
shutil.move(os.path.join(path, filename), dest)
print(f"Moved {filename} โ {folder}/")
break
organize_folder(os.path.expanduser("~/Downloads"))