---
title: "Class 12 Computer Science Project: Python, MySQL, Code"
description: "Class 12 computer science project in Python and MySQL with source code: an original kit register in six stages, with output, tests, report and viva."
canonical: https://learn.modernagecoders.com/cbse-class-12-computer-science-project-python-mysql
source: src/pages/cbse-class-12-computer-science-project-python-mysql.html
---
> Class 12 computer science project in Python and MySQL with source code: an original kit register in six stages, with output, tests, report and viva.

Start here

## Courses that take you from tables to a working project

If the code below reads like a foreign language, one of these fills the gap: the board course for all of 083, MySQL for the database side, Python for the program side.

[![Computer Science Class 11 and 12 course thumbnail](/images/ip-cs-class-11-12.webp)  Board course / 083 Computer Science 11 and 12 Python, SQL and the connection between them for the CBSE paper, with guidance on the practical file and on the project your group submits. Open the course →](/courses/cbse-icse-computer-science-class-11-12-python-java-complete-course)[![MySQL for Teens course thumbnail](/images/mysql-teens.webp)  Database / Design MySQL for Teens Designing tables, joining them and putting a Python app on top. Useful when the project idea is clear but the tables are not. Open the course →](/courses/mysql-mastery-for-teens)[![Python for Teens course thumbnail](/images/python-teens.webp)  Python / Building Python for Teens A long, project-led Python course. Take it when functions, loops and dictionaries still need practice before any database work. Open the course →](/courses/python-complete-masterclass-teens)

Ans. The short version

A class 12 computer science project in Python and MySQL with source code needs a real problem, a database of two or more related tables, a menu-driven Python program that inserts, searches, updates and deletes, and a report you can defend. In CBSE 083 for 2026-27 the project is worth 8 of the 30 practical marks and is done in groups of two to three. The sports room register on this page shows every stage, tested on MySQL. Modern Age Coders guides your own project live, personalised one to one, at your timing; a priority demo lets you try a full class first.

Question 1. What is being asked for?

## What should a Class 12 computer science project contain?

It should solve one real problem with Python file handling or a Python to SQL connection, and use what you learnt in Classes 11 and 12. The syllabus gives it 8 marks and asks for a group of two to three students.

### What the 083 syllabus says

- **The aim:** something tangible and useful, built on a problem worth solving. CBSE suggests visiting local businesses and asking what troubles them.
- **The tools:** Python file handling or Python to SQL connectivity. Extra Python libraries are welcome.
- **The time:** started at least six months before submission.
- **The warning:** students are to be sensitised against plagiarism and copyright violations.

**What CBSE does not publish:** a page count, a compulsory list of report headings, or a split of the 8 marks. Your school sets those, so ask for its format first.

### The problem behind this project

In our invented school, the sports teacher writes loans in a notebook. Footballs go missing, two students claim the last chess set, and nobody can say what is overdue. The register must answer three questions at once: what is in the room, who has the rest, and what is late.

**Use it as a model, not as a submission.** This page is public, so an examiner can find it as easily as you did. Learn how the stages fit, then build the same quality for a problem in your own school, shop or building society.

### Which syllabus ideas this one project uses

| Idea from Class 11 or 12 | Where it appears | Why it is needed, not decoration |
| --- | --- | --- |
| User-defined functions, default parameter | `read_int(message, lowest=1)` | One checked input routine serves kit ids, quantities and admission numbers |
| Exception handling | `read_int`, `read_date`, `add_kit`, `main` | A typing slip or a repeated id must not end the program |
| Stack | `undo_stack` | The newest wrong entry is the one to cancel: last in, first out |
| CSV file | `overdue.csv` | The teacher wants a list that opens in a spreadsheet |
| SQL: keys, NULL, equi-join, ORDER BY, MAX | Every module | Two tables that must agree with each other |
| Parameterised queries and `commit()` | Issue, return, undo | Names with an apostrophe, and changes that must be saved as a pair |

Question 2. What do I do before writing code?

## Tables first: the MySQL design of the project

Draw the tables and fill in three rows by hand before you open the editor. If a question cannot be answered from those rows, the design is wrong, and it is much cheaper to find out now.

### Two tables, one link

**KIT** has one row for each kind of kit: what it is, how many the school owns, how many are in the room. **ISSUE** has one row for each loan. `kit_id` is the primary key of KIT and a foreign key in ISSUE, so a kit's name is written once and never copied into the loans.

`back_on` is the only column that may be NULL. NULL means the kit is still out. That one decision removes the need for a separate status column.

### Run this once: setup.py

It creates the database and both tables, then adds four rows of starting stock if KIT is empty. Running it twice does no harm.

### Sharing the work in a group of three

| Student | Writes | Also explains |
| --- | --- | --- |
| A | Setup, connection, input checks | Issue and undo |
| B | Kit list, add kit, issue | Return and overdue |
| C | Return, overdue, undo, menu | Tables and input checks |

Cross over once, as in the last column. The viva is asked of you, not of the group.

***setup.py**run once*

```
# setup.py : run once before the project
import mysql.connector

con = mysql.connector.connect(host="localhost", user="root",
                              password="your_password")
cur = con.cursor()
cur.execute("CREATE DATABASE IF NOT EXISTS sportsroom")
cur.execute("USE sportsroom")
cur.execute("""CREATE TABLE IF NOT EXISTS KIT(
    kit_id   INT PRIMARY KEY,
    kit_name VARCHAR(20) NOT NULL UNIQUE,
    total    INT NOT NULL,
    in_room  INT NOT NULL)""")
cur.execute("""CREATE TABLE IF NOT EXISTS ISSUE(
    issue_no INT PRIMARY KEY,
    kit_id   INT NOT NULL,
    adm_no   INT NOT NULL,
    student  VARCHAR(25) NOT NULL,
    qty      INT NOT NULL,
    due_on   DATE NOT NULL,
    back_on  DATE)""")

# starting stock, entered only if KIT is still empty
cur.execute("SELECT COUNT(*) FROM KIT")
if cur.fetchone()[0] == 0:
    stock = [(1, "Football", 6, 6), (2, "Badminton racket", 10, 10),
             (3, "Skipping rope", 12, 12), (4, "Chess set", 4, 4)]
    for row in stock:
        cur.execute("INSERT INTO KIT VALUES (%s, %s, %s, %s)", row)
    con.commit()
print("Tables are ready.")
con.close()
```

***What MySQL shows afterwards**DESCRIBE*

```
DESCRIBE KIT;
+----------+-------------+------+-----+---------+-------+
| Field    | Type        | Null | Key | Default | Extra |
+----------+-------------+------+-----+---------+-------+
| kit_id   | int         | NO   | PRI | NULL    |       |
| kit_name | varchar(20) | NO   | UNI | NULL    |       |
| total    | int         | NO   |     | NULL    |       |
| in_room  | int         | NO   |     | NULL    |       |
+----------+-------------+------+-----+---------+-------+

DESCRIBE ISSUE;
+----------+-------------+------+-----+---------+-------+
| Field    | Type        | Null | Key | Default | Extra |
+----------+-------------+------+-----+---------+-------+
| issue_no | int         | NO   | PRI | NULL    |       |
| kit_id   | int         | NO   |     | NULL    |       |
| adm_no   | int         | NO   |     | NULL    |       |
| student  | varchar(25) | NO   |     | NULL    |       |
| qty      | int         | NO   |     | NULL    |       |
| due_on   | date        | NO   |     | NULL    |       |
| back_on  | date        | YES  |     | NULL    |       |
+----------+-------------+------+-----+---------+-------+
```

PRI marks the primary key and UNI the UNIQUE column. In the Null column, only `back_on` says YES.

Unsure about keys or constraints? They are worked out on [Class 12 SQL questions](/cbse-class-12-computer-science-sql-queries).

Question 3. Where is the full source code?

## Python and MySQL source code, built in six stages

Type the stages in order into one file, sports_room.py. Together they make a complete program of about 190 lines, and you can test after every stage.

### Stage 1. Connection and safe input

Nothing here knows about sports. These four functions could open any project, which is why they come first.

***Stage 1**sports_room.py*

```
# sports_room.py : kit issue register for a school sports room
import csv
from datetime import date, timedelta
import mysql.connector

LOAN_DAYS = 3        # every loan is for three days
undo_stack = []      # issue numbers made in this run, newest on top

def connect():
    """Return an open connection to the sportsroom database."""
    return mysql.connector.connect(host="localhost", user="root",
                                   password="your_password",
                                   database="sportsroom")

def read_int(message, lowest=1):
    """Keep asking until a whole number >= lowest is typed."""
    while True:
        try:
            number = int(input(message))
            if number >= lowest:
                return number
            print("Enter", lowest, "or more.")
        except ValueError:
            print("Please type a whole number.")

def read_date(message):
    """Keep asking until a real date is typed."""
    while True:
        try:
            return date.fromisoformat(input(message))
        except ValueError:
            print("Type the date as YYYY-MM-DD.")

def read_text(message, longest):
    """Keep asking until the text is not empty and fits the column."""
    while True:
        text = input(message).strip()
        if 0 < len(text) <= longest:
            return text
        print("Type 1 to", longest, "characters.")
```

**Why three input functions?** Each refuses what its column cannot hold: letters in a number, 31 February, a name longer than VARCHAR(25). The database then never sees a value it would reject.

### Stage 2. See the kit, add a kind of kit

***Stage 2**SELECT and INSERT*

```
def show_kit(con):
    """Display every kind of kit with total and available count."""
    cur = con.cursor()
    cur.execute("SELECT * FROM KIT ORDER BY kit_id")
    print("Id   Kit                  Total  In room")
    for kit_id, name, total, in_room in cur.fetchall():
        print("%-4d %-20s %5d %8d" % (kit_id, name, total, in_room))

def add_kit(con):
    """Add a new kind of kit. A repeated id or name is refused."""
    kit_id = read_int("New kit id: ")
    name = read_text("Kit name: ", 20).capitalize()
    total = read_int("How many bought: ")
    try:
        cur = con.cursor()
        cur.execute("INSERT INTO KIT VALUES (%s, %s, %s, %s)",
                    (kit_id, name, total, total))
        con.commit()
        print(name, "added.")
    except mysql.connector.IntegrityError:
        print("That kit id or name already exists.")
```

**Where the duplicate is caught.** The program does not search for a repeated id first. It lets the PRIMARY KEY and UNIQUE constraints refuse the row, and turns that refusal into a message.

### Stage 3. Issue

The longest function, because four things can be wrong before one thing goes right. Each check returns early.

***Stage 3**INSERT and UPDATE together*

```
def issue_kit(con, today):
    """Lend kit to a student and reduce the count in the room."""
    cur = con.cursor()
    kit_id = read_int("Kit id: ")
    cur.execute("SELECT kit_name, in_room FROM KIT WHERE kit_id = %s",
                (kit_id,))
    kit = cur.fetchone()
    if kit is None:
        print("No kit has that id.")
        return
    qty = read_int("How many: ")
    if qty > kit[1]:
        print("Only", kit[1], "in the room. Nothing issued.")
        return
    adm_no = read_int("Admission number: ")
    student = read_text("Student name: ", 25)

    cur.execute("SELECT MAX(issue_no) FROM ISSUE")
    last = cur.fetchone()[0]             # None when the table is empty
    issue_no = 1 if last is None else last + 1
    due_on = today + timedelta(days=LOAN_DAYS)

    cur.execute("INSERT INTO ISSUE VALUES (%s, %s, %s, %s, %s, %s, NULL)",
                (issue_no, kit_id, adm_no, student, qty, due_on))
    cur.execute("UPDATE KIT SET in_room = in_room - %s WHERE kit_id = %s",
                (qty, kit_id))
    con.commit()                         # both changes are saved together
    undo_stack.append(issue_no)
    print("Issue", issue_no, "saved. Due back on", due_on)
```

**One commit for two changes.** If the power failed after the INSERT and before the UPDATE, neither would be kept. The count in KIT and the rows in ISSUE always agree.

### Stage 4. Return

***Stage 4**UPDATE twice*

```
def return_kit(con, today):
    """Close an issue and put the kit back in the count."""
    cur = con.cursor()
    issue_no = read_int("Issue number: ")
    cur.execute("SELECT kit_id, qty, due_on FROM ISSUE "
                "WHERE issue_no = %s AND back_on IS NULL", (issue_no,))
    row = cur.fetchone()
    if row is None:
        print("No open issue has that number.")
        return
    kit_id, qty, due_on = row
    cur.execute("UPDATE ISSUE SET back_on = %s WHERE issue_no = %s",
                (today, issue_no))
    cur.execute("UPDATE KIT SET in_room = in_room + %s WHERE kit_id = %s",
                (qty, kit_id))
    con.commit()
    late = (today - due_on).days
    if late > 0:
        print("Returned,", late, "day(s) late.")
    else:
        print("Returned on time.")
```

`AND back_on IS NULL` stops the same loan being returned twice, which would add kit that does not exist.

### Stage 5. The overdue list, on screen and in CSV

***Stage 5**equi-join and csv*

```
def overdue_list(con, today):
    """Show loans past their due date and save them to overdue.csv."""
    cur = con.cursor()
    cur.execute("SELECT issue_no, student, kit_name, qty, due_on "
                "FROM ISSUE, KIT "
                "WHERE ISSUE.kit_id = KIT.kit_id "
                "AND back_on IS NULL AND due_on < %s "
                "ORDER BY due_on", (today,))
    rows = cur.fetchall()
    if cur.rowcount == 0:
        print("Nothing is overdue.")
        return
    with open("overdue.csv", "w", newline="") as f:
        writer = csv.writer(f)
        writer.writerow(["Issue", "Student", "Kit", "Qty", "Days late"])
        for issue_no, student, kit, qty, due_on in rows:
            late = (today - due_on).days
            print(issue_no, student, kit, qty, "late by", late, "day(s)")
            writer.writerow([issue_no, student, kit, qty, late])
    print(len(rows), "row(s) written to overdue.csv")
```

**Two dates subtracted give days.** The connector hands `due_on` back as a Python date, so `(today - due_on).days` needs no string work.

### Stage 6. Undo and the menu

***Stage 6**stack, menu, finally*

```
def undo_issue(con):
    """Cancel the newest issue made in this run (last in, first out)."""
    if len(undo_stack) == 0:
        print("Nothing to undo.")
        return
    issue_no = undo_stack.pop()
    cur = con.cursor()
    cur.execute("SELECT kit_id, qty FROM ISSUE "
                "WHERE issue_no = %s AND back_on IS NULL", (issue_no,))
    row = cur.fetchone()
    if row is None:
        print("Issue", issue_no, "was already returned.")
        return
    cur.execute("DELETE FROM ISSUE WHERE issue_no = %s", (issue_no,))
    cur.execute("UPDATE KIT SET in_room = in_room + %s WHERE kit_id = %s",
                (row[1], row[0]))
    con.commit()
    print("Issue", issue_no, "cancelled.")

def main():
    """Open the database, run the menu, always close the connection."""
    try:
        con = connect()
    except mysql.connector.Error as problem:
        print("Could not open the database:", problem)
        return
    try:
        today = read_date("Today's date (YYYY-MM-DD): ")
        while True:
            print("\n1 Show kit   2 Add kit   3 Issue   4 Return")
            print("5 Overdue    6 Undo last issue     7 Exit")
            choice = input("Choice: ")
            if choice == "1":
                show_kit(con)
            elif choice == "2":
                add_kit(con)
            elif choice == "3":
                issue_kit(con, today)
            elif choice == "4":
                return_kit(con, today)
            elif choice == "5":
                overdue_list(con, today)
            elif choice == "6":
                undo_issue(con)
            elif choice == "7":
                break
            else:
                print("Choose 1 to 7.")
    finally:
        con.close()
        print("Register closed.")

main()
```

The program asks for the date instead of reading the clock, so you can show an overdue item in front of the examiner without waiting three days.

New to one of these parts? Read [Python MySQL connectivity](/cbse-class-12-computer-science-python-mysql-connectivity) for stages 2 to 4, [CSV and binary files](/cbse-class-12-computer-science-csv-and-binary-files) for stage 5, [the stack](/cbse-class-12-computer-science-stack) for stage 6, and [how to build a menu-driven program](/blog/how-to-build-menu-driven-program-in-python) for the loop in `main()`.

Question 4. Does it really work?

## Output of the project, and the tests behind it

These are real sessions, run on MySQL. The repeated menu and a few ordinary choices are cut to three dots so the interesting part fits; every line shown is as printed.

***Day 1**7 December*

```
Today's date (YYYY-MM-DD): 2026-12-07

1 Show kit   2 Add kit   3 Issue   4 Return
5 Overdue    6 Undo last issue     7 Exit
Choice: 2
New kit id: 5
Kit name: relay baton
How many bought: 8
Relay baton added.
...
Choice: 3
Kit id: 1
How many: 2
Admission number: 5012
Student name: Ishita Rao
Issue 1 saved. Due back on 2026-12-10
...
Choice: 3
Kit id: 1
How many: five
Please type a whole number.
How many: 5
Only 4 in the room. Nothing issued.
...
Choice: 3
Kit id: 4
How many: 1
Admission number: 4877
Student name: Vihaan D'Souza
Issue 2 saved. Due back on 2026-12-10
...
Choice: 6
Issue 2 cancelled.
...
Choice: 3
Kit id: 2
How many: 3
Admission number: 5120
Student name: Noor Fatima
Issue 2 saved. Due back on 2026-12-10
...
Choice: 1
Id   Kit                  Total  In room
1    Football                 6        4
2    Badminton racket        10        7
3    Skipping rope           12       12
4    Chess set                4        4
5    Relay baton              8        8
...
Choice: 7
Register closed.
```

Kit added, kit issued, a wrong quantity refused, a wrong entry undone.

***Day 2**the 12th*

```
Today's date (YYYY-MM-DD): 07/12/2026
Type the date as YYYY-MM-DD.
Today's date (YYYY-MM-DD): 2026-12-12
...
Choice: 5
1 Ishita Rao Football 2 late by 2 day(s)
2 Noor Fatima Badminton racket 3 late by 2 day(s)
2 row(s) written to overdue.csv
...
Choice: 4
Issue number: 1
Returned, 2 day(s) late.
...
Choice: 4
Issue number: 1
No open issue has that number.
...
Choice: 7
Register closed.
```

A badly typed date, then two overdue loans. The one returned here was due on the 10th.

***overdue.csv**written by stage 5*

```
Issue,Student,Kit,Qty,Days late
1,Ishita Rao,Football,2,2
2,Noor Fatima,Badminton racket,3,2
```

***The table after day 2**MySQL*

```
SELECT * FROM ISSUE;
+----------+--------+--------+-------------+-----+------------+------------+
| issue_no | kit_id | adm_no | student     | qty | due_on     | back_on    |
+----------+--------+--------+-------------+-----+------------+------------+
|        1 |      1 |   5012 | Ishita Rao  |   2 | 2026-12-10 | 2026-12-12 |
|        2 |      2 |   5120 | Noor Fatima |   3 | 2026-12-10 | NULL       |
+----------+--------+--------+-------------+-----+------------+------------+
```

Issue 1 is closed, issue 2 is still out. Vihaan's cancelled loan left no row, so its number was used again: an honest limitation to write in your report.

### Test table for the report

Testing is the section students leave thin. Write what you tried, what should happen and what did happen. All twelve below were run.

| No. | Test | What was typed | What the program did |
| --- | --- | --- | --- |
| 1 | Letters for a quantity | five | Please type a whole number. Asked again |
| 2 | Zero for an issue number | 0 | Enter 1 or more. Asked again |
| 3 | Date in another style | 07/12/2026 | Type the date as YYYY-MM-DD. Asked again |
| 4 | Kit id that does not exist | 9 | No kit has that id. |
| 5 | More than the room holds | 5 footballs of 4 | Only 4 in the room. Nothing issued. |
| 6 | Exactly what the room holds | 4 chess sets of 4 | Issued; the list then showed 0 in the room |
| 7 | Repeated kit id | 4, Carrom board | That kit id or name already exists. |
| 8 | Empty name, then a 33-letter name | blank, then a long name | Type 1 to 25 characters. Asked again both times |
| 9 | Apostrophe in a name | Vihaan D'Souza | Saved correctly |
| 10 | Return the same loan twice | 1, then 1 again | Second time: No open issue has that number. |
| 11 | Undo with nothing to undo | choice 6 | Nothing to undo. |
| 12 | Undo a loan already returned | choice 6 | Issue 3 was already returned. |

**The failure you should also photograph.** With a wrong password the program does not crash. It prints: `Could not open the database: 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)`. A screenshot of a handled failure says more than one more success.

Question 5. What goes in the file?

## Class 12 computer science project file: sections, and what to write in each

A project file tells the reader the problem, the design, the code, the proof and the limits, in that order. CBSE fixes no headings; use your school's list if it has one, and this order if it does not.

| Section | What to put there | A line from our project |
| --- | --- | --- |
| Cover, certificate, acknowledgement | Names, school, session 2026-27, subject code 083. Thank the people who helped | The sports teacher who showed us the notebook |
| Problem and user | Who has the problem and what it costs them | Loans are in a notebook that cannot be searched |
| Objectives | Three to five things the program will do | Refuse a loan larger than the stock in the room |
| Software and hardware used | Only what you really used | Python, MySQL, mysql-connector-python |
| Table design | Both DESCRIBE outputs, keys marked, sample rows | kit_id links ISSUE to KIT |
| Functions | One line each: name, parameters, purpose, tables touched | return_kit(con, today): closes a loan, updates both tables |
| Source code | Commented, in the order it runs | setup.py, then sports_room.py |
| Output | One screen for each menu choice, and one failure | Overdue list with two rows |
| Testing | The table above, with your own data | Twelve tests |
| Limitations and next steps | What it cannot do, said plainly | Undo forgets everything when the program closes |
| Bibliography | Your textbook, documentation pages, people, any code you adapted | NCERT Class 12 Computer Science |

**About a project file PDF.** There is no ready file to download here, on purpose. A submission has to carry your group's idea, data and screens. Write it in a word processor as you build, and export it to PDF if your school accepts one.

### How the same design becomes library management or student management

Most searches ask for one of these two. They are the same two-table shape with different rules, and the rules are what make a project yours.

| Part | Sports room (this page) | Library management | Student management |
| --- | --- | --- | --- |
| Master table | KIT | BOOK: accession number, title, author, copies, available | STUDENT: admission number, name, section |
| Activity table | ISSUE | LOAN: loan number, accession number, member, due date, return date | MARK: admission number, subject, test, marks |
| The rule to enforce | Never lend more than the room holds | No new loan while a member has one overdue | Marks between 0 and the maximum; one entry per test |
| A join to show | Overdue loans with kit names | Members holding a given title | Report card for one student |
| A GROUP BY to show | Pieces out, for each kit | Loans for each title | Average for each subject |
| File output | overdue.csv | CSV of fines | CSV of students below the pass mark |

More starting points, sorted by effort: [Class 12 CS project topics](/cbse-class-12-computer-science-project-topics).

Question 6. Can you explain it, and finish it?

## Viva questions on this Python MySQL project, and a plan for the weeks left

An examiner who sees a working project asks why it was built that way. Cover the answers and try these ten aloud.

### Ten questions on the register

1. Why does KIT store `in_room` when it could be worked out from ISSUE? Answer For speed and simplicity: one look gives the answer. The price is that two tables must be kept in step, which is why issue, return and undo each change both and commit once.
2. Where is the foreign key, and what checks it? Answer`ISSUE.kit_id`. The program checks it: an issue is refused unless SELECT finds that id in KIT.
3. How do you get the next issue number? Answer`MAX(issue_no)` plus 1. On an empty table MAX gives NULL, which arrives in Python as None, so the first number is set to 1.
4. What if two computers issue at the same moment? Answer Both could read the same MAX. The primary key would refuse the second row. Our program is meant for one desk, and the report says so.
5. Why a stack for undo and not just the highest issue number? Answer The stack holds only what this run created. Deleting the highest number could remove an entry made on another day.
6. Why is `newline=""` in `open()`? Answer The csv writer adds its own line endings. Without it, Windows shows a blank line after each row.
7. What does `finally` do in `main()`? Answer It closes the connection on every way out of the menu, including an error.
8. Why does `return_kit` test `IS NULL` and not `= NULL`? Answer A comparison with NULL is never true, so `= NULL` would find no open loan at all.
9. Which query joins the tables? Answer The overdue list: an equi-join on `kit_id`, with conditions on `back_on` and `due_on`, ordered by due date.
10. What would you add with two more weeks? Answer Name something small and say how: a search by admission number needs one SELECT with a WHERE and one more menu choice.

Sixty more, on the whole practical: [Class 12 CS viva questions](/cbse-class-12-computer-science-viva-questions).

### If you are starting late

Schools on the regular session can hold practicals from 1 January 2027, and each school picks its own day. Cut the scope before you cut the testing.

1. #### Two evenings: talk and draw

  Ask one real person what goes wrong. Draw two tables and write three rows by hand.
2. #### Three evenings: one table working

  Setup, connection, add and show. Nothing else until these run.
3. #### A week: the rule that matters

  The one action that changes both tables, with every check in place.
4. #### Three evenings: report and file output

  One join, one GROUP BY, one CSV.
5. #### Three evenings: try to break it

  Let another student type into it. Every surprise becomes a row in your test table.
6. #### Last: write and rehearse

  Print, then explain a partner's function without the screen.

### In class, you type

The teacher does not hand over a project. You share your screen, write the function, and are asked what it does with bad data before it is run.

### Design is argued first

Is this column in the right table? Can it be NULL? Ten minutes on that question can save an evening of rewriting queries.

### Your report, read aloud

Objectives and limitations are read back to you with one question: does the program really do that?

The project sits beside the report file in the same practical: see [the Class 12 practical file](/blog/python-practical-file-class-12) for that half.

One to one, at your own timing

## A project class is one screen: yours

Every project is different, so every class here is personalised one to one, on the days and at the hour you choose. Book a priority demo for a full class on your own idea before you enrol; its fee comes off the first month if you continue. If you only want to meet the teacher, take the free demo class. You pay by the month, with no admission fee, and may stop when any month ends.

Before you enrol · Try a class

### Priority demo, at a slot you pick

a full live class of about 45 to 60 minutes

- Your idea tested: who uses it, and is it small enough to finish
- Two tables drawn and filled with sample rows together
- One function written by you and then attacked with bad input
- A written skill report that lists what to build first

[Book a priority demo](/book-demo)

The classes · Choose your own timing

### Personalised one to one

₹4,999

per month, 4 private classes, fully flexible timing

- Guidance from topic to viva; the code and words stay yours
- Connection and installation errors sorted out on your machine
- Each module tested before the next is begun
- SQL and Python for the 31 March paper kept moving alongside

Ask for a personalised plan

Bring the partners' parts as well if you are in a group, since you will be asked about them. We guide, question and correct; we do not write or complete a student's project, because the syllabus warns against copied work and the viva would show it within a minute.

Studying outside India?

## Project help for CBSE schools in other countries

CBSE students in Kuwait, Doha, Dubai or Kathmandu build the same 8-mark project for 083. Choose an hour after school where you are, and the class happens on your laptop with your own MySQL.

| Where you live | Time difference | Usual class window, local time | Format |
| --- | --- | --- | --- |
| India every Indian city | Indian time | Any time you choose | Personalised 1-on-1 |
| UAE and Oman Dubai, Abu Dhabi, Sharjah, Muscat | 1 h 30 min behind India | 3:00 PM to 9:00 PM | Personalised 1-on-1 |
| Saudi Arabia, Qatar, Kuwait, Bahrain Riyadh, Jeddah, Dammam, Doha, Kuwait City, Manama | 2 h 30 min behind India | 3:00 PM to 9:00 PM | Personalised 1-on-1 |
| Nepal Kathmandu | 15 min ahead of India | 4:30 PM to 9:00 PM | Personalised 1-on-1 |
| Ethiopia and East Africa Addis Ababa and East Africa Time | 2 h 30 min behind India | 4:30 PM to 9:00 PM | Personalised 1-on-1 |
| Singapore and Malaysia Singapore, Kuala Lumpur | 2 h 30 min ahead of India | 3:30 PM to 9:00 PM | Personalised 1-on-1 |

Local problems make the strongest projects abroad: a cricket club's fees in Sharjah, a Saturday language school's attendance in Singapore. Nobody else in the world will submit yours.

What families say

## Rated 4.9 across 547 Google reviews

Real reviews from real families. We neither write nor commission them.

★★★★★

"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."

Ria Mukherjee

Parent

★★★★★

"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."

Samriddha Mondal

Student

★★★★★

"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."

Vansh Agarwal

Student

★★★★★

"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."

Sonam Oswal

Parent of Dhairya

★★★★★

"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."

Sonu Goyal

Parent

★★★★★

"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."

Ritu Kedia

Parent

The rest of the Class 12 series

## More pages for Class 12 students

Every page in the CBSE Class 12 Computer Science series, grouped by what you need.

### Practicals, project and viva

- [Class 12 CS viva questions](/cbse-class-12-computer-science-viva-questions)
- [Class 12 CS project topics](/cbse-class-12-computer-science-project-topics)

### Exam, papers and marks

- [Class 12 CS sample paper practice](/cbse-class-12-computer-science-sample-paper-2026-27)
- [Class 12 CS exam date, pattern and marks](/cbse-class-12-computer-science-paper-pattern-and-marking-scheme)
- [Class 12 CS important questions](/cbse-class-12-computer-science-important-questions)

### Questions and practice

- [Class 12 CS MCQ test](/cbse-class-12-computer-science-mcq-test)
- [Class 12 CS output questions](/cbse-class-12-computer-science-output-questions)
- [Class 12 CS case study questions](/cbse-class-12-computer-science-case-study-questions)
- [Class 12 CS SQL questions](/cbse-class-12-computer-science-sql-queries)

### Chapter by chapter

- [Functions in Python Class 12](/cbse-class-12-computer-science-functions)
- [Exception handling Class 12](/cbse-class-12-computer-science-exception-handling)
- [Text file handling Class 12](/cbse-class-12-computer-science-file-handling)
- [CSV and binary files Class 12](/cbse-class-12-computer-science-csv-and-binary-files)
- [Stack Class 12 Computer Science](/cbse-class-12-computer-science-stack)
- [Computer networks Class 12](/cbse-class-12-computer-science-computer-networks)
- [Python MySQL connectivity Class 12](/cbse-class-12-computer-science-python-mysql-connectivity)

### Notes, revision and help

- [Class 12 CS syllabus 2026-27](/cbse-class-12-computer-science-syllabus-2026-27)
- [Class 12 CS notes](/cbse-class-12-computer-science-notes)
- [Class 12 CS revision plan](/cbse-class-12-computer-science-revision-plan)
- [Class 12 CS crash course](/cbse-class-12-computer-science-crash-course)

**CBSE Class 12 Informatics Practices (065):** [Class 12 IP practical file](/cbse-class-12-informatics-practices-practical-file)  [Class 12 IP project with source code](/cbse-class-12-informatics-practices-project)  [Class 12 IP sample paper practice](/cbse-class-12-informatics-practices-sample-paper-2026-27)  [Class 12 IP important questions](/cbse-class-12-informatics-practices-important-questions)

**CBSE Class 12 Information Technology (802):** [IT 802 practical and project file](/cbse-class-12-it-802-practical-and-project-file)  [IT 802 Java notes and programs](/cbse-class-12-it-802-java-programs)  [IT 802 notes](/cbse-class-12-it-802-notes)

**CBSE Class 11 CS, IP and AI:** [Class 11 CS practical file](/cbse-class-11-computer-science-practical-file)  [Class 11 IP practical file](/cbse-class-11-informatics-practices-practical-file)  [CS or IP in Class 11](/computer-science-or-informatics-practices-class-11)

**ISC Computer Science (868):** [ISC Class 12 CS syllabus 2027](/isc-class-12-computer-science-syllabus-2027)  [ISC Class 12 CS practice paper](/isc-class-12-computer-science-specimen-paper-practice)  [ISC Class 12 practical questions solved](/isc-class-12-computer-science-practical-questions)  [ISC Boolean algebra and K-maps](/isc-class-12-computer-science-boolean-algebra)

**Program lists with output:** [Class 12 CS practical file](/blog/python-practical-file-class-12)  [20 Python programs for Class 12](/blog/python-programs-for-cbse-class-12)  [Menu-driven programs in Python](/blog/how-to-build-menu-driven-program-in-python)

Project questions

## Asked about Class 12 CS projects with Python and MySQL

### How do I make a Class 12 computer science project in Python and MySQL with source code?

Pick one real problem, draw two related tables, write a setup program that creates them, then add one function at a time for adding, showing, updating and deleting, and join them with a menu. Test each function with wrong input. The sports room register on this page shows all of it in six stages.

### How many marks is the project in Class 12 Computer Science?

The project carries 8 of the 30 practical marks in the CBSE 083 syllabus for 2026-27. CBSE does not publish how the 8 are divided, so ask your teacher what your school looks at: usually the program running, the report and how well you can explain it.

### How many students can be in a group for the CS project?

The syllabus says groups of two to three students. Divide the modules, but make sure each member can explain the tables and at least one function somebody else wrote.

### Can I get a Class 12 computer science project file PDF?

Plenty are posted online, and your teacher can find the same ones. A copied file is risky because the syllabus warns about plagiarism and the viva is asked on your own code. Use this page to learn the sections and the standard expected, then write your own report and save it as a PDF.

### How do I make a library management project for Class 12?

Use a BOOK table and a LOAN table linked by accession number, with a return date that stays NULL until the book comes back. Add one rule of your own, such as no new loan while one is overdue. The table on this page maps our project to a library column by column.

### What tables do I need for a student management system project?

Two are enough: STUDENT with admission number, name and section, and MARK with admission number, subject, test and marks. The link is the admission number. Show a join for a report card and a GROUP BY for subject averages, and refuse marks outside the allowed range.

### Is MySQL compulsory for the Class 12 project?

No. The syllabus says Python file handling or Python to SQL connectivity, so a project on text, binary or CSV files is allowed. A database suits data that is updated often or needs two linked tables. Choose the one you can defend.

### How long should the project code be?

There is no official length. Ours is about 190 lines with comments. A shorter program in which every check works is easier to defend than a thousand lines you cannot explain. Stop adding features when you have one good rule, one join and one file output.

### Can I use Tkinter or a web page for the project?

Yes, the syllabus encourages learning extra libraries. Finish the plain text version first and keep the database functions separate, so the window only calls them. If time runs out you still have a complete project.

### Will you make my Class 12 project for me?

No. In live one to one classes a teacher guides you from the idea to the viva while you write every part. A priority demo is the way to try it: a class of about 45 to 60 minutes on your own project, with a written skill report, and the fee is adjusted in the first month if you join.

Start

## Tell us the problem. Leave with two tables.

In the free demo class you describe the problem, and the teacher helps you decide whether it fits the time you have. Even a half-formed idea is enough to begin.

Want a whole working class on it? Book a **priority demo** at the hour you choose: tables designed, one function written and tested, and a written skill report at the end. Enrol afterwards and that fee is adjusted against the first month.

Bring your laptop with Python on it. If MySQL is not set up, say so when you book and the class begins there.

[WhatsApp us](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders.%20I%20want%20one%20to%20one%20guidance%20for%20my%20Class%2012%20Computer%20Science%20(083)%20Python%20and%20MySQL%20project.) · [+91 91233 66161](tel:+919123366161) · [connect@modernagecoders.com](mailto:connect@modernagecoders.com)

Every class is live video. The form requests a callback and reserves nothing.

### Want it sooner? Book a priority demo

A full live class of about 45 to 60 minutes at a slot you pick, with a written skill report and learning roadmap on WhatsApp afterwards. The fee is adjusted against your first month if you enrol.

[Book a priority demo](/book-demo)

## Keep exploring Modern Age Coders

### By class and age

- [Class 12 IP Computer Networks Notes: Unit 3 for 2026-27](/cbse-class-12-informatics-practices-computer-networks)
- [Class 12 IP Crash Course 2027: Live One to One Classes](/cbse-class-12-informatics-practices-crash-course)
- [DataFrame Class 12 IP: Notes, loc and iloc, Programs](/cbse-class-12-informatics-practices-dataframe)
- [Class 12 IP Data Visualization: Line, Bar, Histogram](/cbse-class-12-informatics-practices-matplotlib-charts)
- [Number System Class 11 Computer Science: Conversions, Logic](/cbse-class-11-number-system-conversion)
- [Class 12 IP MCQ with Answers 2026-27: a 40-Question Test](/cbse-class-12-informatics-practices-mcq-test)
- [ISC Class 12 Computer Science Crash Course 2027, One to One](/isc-class-12-computer-science-crash-course)
- [Class 12 IT 802 Syllabus 2026-27: Units, Marks and Dates](/cbse-class-12-it-802-syllabus-2026-27)
- [Class 12 IT 802 Sample Paper with Solutions, 2026-27](/cbse-class-12-it-802-sample-paper)

### Learn more

- [Informatics Practices (IP) Class 11-12: CBSE Python & SQL](/courses/cbse-informatics-practices-ip-class-11-12-python-pandas-sql-complete-course)
- [AI and Python Classes for Teens in Fredericton, NB](/ai-and-python-classes-for-teens-in-fredericton)
- [AI and Python Classes for Teens in the SF Bay Area](/ai-and-python-classes-for-teens-in-san-francisco-bay-area)
- [Data Analysis Course: Excel, SQL, Python & BI](/courses/data-analysis-mastery-course-college)

### Free resources

- [Python Tutorial for Beginners: Complete Guide](/resources/python)
- [Sets in Python](/resources/python/sets-in-python)
- [Views, Stored Procedures, and Functions](/resources/sql/views-and-stored-procedures)
- [Conditional Logic](/resources/sql/conditional-logic-case-when)

### From the blog

- [Python Tutorials & Guides](/blog/topic/python)
- [Python Programs for Class 11 CBSE (CS and IP) With Output](/blog/python-programs-for-class-11)
- [30 Python Project Ideas for Beginners (With Source Code)](/blog/python-project-ideas-for-beginners)
- [15 Python Mini Projects With Source Code (Tested)](/blog/python-mini-projects-with-source-code)

### Start here

- [Try a free trial class with a Modern Age Coders mentor](/free-trial)
- [About Modern Age Coders, teaching since 2020](/about)

---

*Canonical: https://learn.modernagecoders.com/cbse-class-12-computer-science-project-python-mysql*
