CLI tool managing student lists and logging daily class attendance.
Tick off requirements as you build to track real-time completion.
Follow this chronological guide to build the project from scratch.
Set up SQLite tables for students, subjects, and daily attendance logs.
import sqlite3
def init_db():
with sqlite3.connect("attendance.db") as conn:
cursor = conn.cursor()
cursor.execute("""
CREATE TABLE IF NOT EXISTS students (
id INTEGER PRIMARY KEY AUTOINCREMENT,
roll_num TEXT UNIQUE NOT NULL,
name TEXT NOT NULL
)
""")
cursor.execute("""
CREATE TABLE IF NOT EXISTS attendance (
id INTEGER PRIMARY KEY AUTOINCREMENT,
student_id INTEGER NOT NULL,
date TEXT NOT NULL,
status TEXT CHECK(status IN ('PRESENT', 'ABSENT', 'LATE')),
FOREIGN KEY(student_id) REFERENCES students(id),
UNIQUE(student_id, date)
)
""")
conn.commit()Real issues students hit during development and how to troubleshoot them fast.
Continue building your skills with similar projects.
Sleek weather dashboard using OpenWeather API with geolocation, 5-day forecast, and dynamic weather themes.
Personal budget tracker with transaction log, category breakdown, and Chart.js pie charts.
Movie discovery app with TMDB API, trending lists, search, and detail modals.