Problem: Managing detailed student profiles manually is cumbersome and inefficient.
Solution: Provides a way to create, update, and store student profiles including academic and personal information.
Benefits: Streamlines the process of managing student data and improves accessibility for teachers and administrative staff.
Adoption: This system can be integrated with a larger student management system and include functionalities like sending notifications and scheduling meetings.
Code:
import json
# Function to add/update student profiles
def update_profile(student_id, name, age, courses):
student_data = {
'ID': student_id,
'Name': name,
'Age': age,
'Courses': courses
}
with open(f'{student_id}_profile.json', 'w') as file:
json.dump(student_data, file)
print(f"Profile updated for {name}.")
# Sample student profile update
update_profile(101, 'John Doe', 20, ['Python Programming', 'Data Science'])
No comments:
Post a Comment