CLI entering student grades and calculating semester report cards.
Tick off requirements as you build to track real-time completion.
Follow this chronological guide to build the project from scratch.
Define database tables storing courses, credit units, and student marks.
import sqlite3
def init_results_db():
with sqlite3.connect("results.db") as conn:
cursor = conn.cursor()
cursor.execute("""
CREATE TABLE IF NOT EXISTS courses (
code TEXT PRIMARY KEY,
name TEXT NOT NULL,
credits INTEGER NOT NULL
)
""")
cursor.execute("""
CREATE TABLE IF NOT EXISTS grades (
id INTEGER PRIMARY KEY AUTOINCREMENT,
student_id TEXT NOT NULL,
course_code TEXT NOT NULL,
grade_point REAL NOT NULL,
FOREIGN KEY(course_code) REFERENCES courses(code),
UNIQUE(student_id, course_code)
)
""")
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.