Sunday, May 4, 2025

Education and Learning Management Systems - Student Assignment Tracker

 

Problem: Tracking the status and deadlines of student assignments manually can be difficult and prone to errors.

Solution: Automates the tracking of student assignments, their deadlines, and submission status.

Benefits: Helps instructors manage and track assignments effectively and ensures students meet deadlines.

Adoption: This can be expanded to integrate with an online platform that automatically sends reminders and updates to students.

Code:


from datetime import datetime


# Sample assignments data

assignments = {

    'John Doe': {'Python Project': '2025-05-10', 'Data Science Report': '2025-05-15'},

    'Jane Smith': {'Machine Learning Assignment': '2025-05-12'},

}


# Function to track assignments

def track_assignments():

    today = datetime.now().date()

    for student, assignments_list in assignments.items():

        print(f"Assignments for {student}:")

        for assignment, deadline in assignments_list.items():

            deadline_date = datetime.strptime(deadline, '%Y-%m-%d').date()

            status = "Completed" if deadline_date < today else "Pending"

            print(f"  - {assignment}: Deadline {deadline} | Status: {status}")

        print()


# Track assignments

track_assignments()


No comments:

Post a Comment

IoT (Internet of Things) Automation - Smart Energy Usage Tracker

  Notes: Problem Solved: Logs and analyzes power usage from smart meters. Customization Benefits: Track per-device energy and set ale...