# Student Study Manager # Class 11 Python Project # Easy Version + 2 Extra Features students = [] # List of students records = [] # List of study records while True: print("\n===== Student Study Manager =====") print("1. Add Student") print("2. Add Study Record") print("3. View Study Records") print("4. Count Subjects Studied") print("5. Total Study Time per Student") print("6. Strength & Weakness per Student") print("7. Exit") choice = input("Enter your choice (1-7): ") # 1. Add Student if choice == "1": name = input("Enter student name: ") roll = input("Enter roll number: ") student = {"name": name, "roll": roll} students.append(student) print("Student added!") # 2. Add Study Record elif choice == "2": if not students: print("Add student first!") else: roll = input("Enter student roll number: ") subject = input("Enter subject name: ") time = float(input("Enter time studied (hours): ")) record = {"roll": roll, "subject": subject, "time": time} records.append(record) print("Study record added!") # 3. View Study Records elif choice == "3": if not records: print("No study records found.") else: print("\n--- Study Records ---") for r in records: print("Roll:", r["roll"], "| Subject:", r["subject"], "| Time:", r["time"], "hours") # 4. Count Subjects Studied elif choice == "4": print("Total study records:", len(records)) # 5. Total Study Time per Student elif choice == "5": if not records: print("No study records found.") else: print("\n--- Total Study Time per Student ---") for s in students: total_time = 0 for r in records: if r["roll"] == s["roll"]: total_time += r["time"] print(f"{s['name']} (Roll: {s['roll']}) → {total_time} hours") # 6. Strength & Weakness per Student elif choice == "6": if not records: print("No study records found.") else: print("\n--- Strength & Weakness per Student ---") for s in students: sub_time = {} for r in records: if r["roll"] == s["roll"]: sub_time[r["subject"]] = r["time"] if not sub_time: continue avg_time = sum(sub_time.values()) / len(sub_time) print(f"\n{s['name']} (Roll: {s['roll']})") for sub, t in sub_time.items(): if t >= avg_time: print(sub, "→ Strength") else: print(sub, "→ Weakness") # 7. Exit elif choice == "7": print("Thank you for using Student Study Manager!") break else: print("Invalid choice! Try again.")