Project 2: Student Data Manager — 7-Day Plan

Build a mini “database” using list of dictionaries and implement CRUD: Add, View, Search, Delete.
Outcome: CRUD console app Key: Data structures Finish Target: Day 7

Final Project (What you will submit)

  • Student Manager with fields: roll, name, class/section, marks (or phone)
  • Features: Add, View All, Search by roll, Delete by roll, Exit
  • Include: starting dataset of 5 records + 6 sample runs

Technologies

  • Python 3
  • Console I/O
  • Optional (bonus): File I/O to save/load

Skills Required

  • Lists and dictionaries
  • Loops + conditions
  • Functions
  • Searching (linear search)
  • Validation (avoid duplicate roll)

Importance of These Skills

  • Data structures = how real apps store and manage information.
  • CRUD is the backbone of every business app (users, items, records).
  • Searching + validation trains “correctness”, not just output.
  • Builds confidence for bigger apps (Excel-like, attendance, inventory).

Record Format (Standard)

students = [
  {"roll":101, "name":"Amit", "class":"10A", "marks":88},
  {"roll":102, "name":"Neha", "class":"10A", "marks":91}
]

7-Day Tasks + Checks

Tick as you complete. Saved in this browser.
Day 6
Integrate
Day Tasks Checks (tick all)
Day 1
Data plan
  • Decide fields (roll, name, class, marks).
  • Write menu options.
  • Create initial dataset of 5 students.
Day 2
View All
  • Implement view_all() to print a table.
  • Handle empty list nicely.
Day 3
Search
  • Implement search by roll.
  • Write helper: find_index_by_roll().
Day 4
Add
  • Implement add_student() with input.
  • Block duplicate roll numbers.
  • Validate numeric inputs with try/except.
Day 5
Delete
  • Implement delete_by_roll().
  • Handle “not found” case.
  • Connect all features to the menu loop.
  • Add clean output formatting.
  • Create 6 sample runs.
Day 7
Submit
  • Final testing: edge cases and invalid inputs.
  • File name: project2_yourname.py
  • Write 5 lines: What CRUD means + what you learned.

Goal: By Day 7, you can say: “I can manage real records using Python data structures.”