Python Project
Python Project
On
“TOPIC NAME”
Submitted on 13-04-2023
By
1. KHAN HAMZA
2. NOUMAN RIYAZ SAYYED
3. ARSHIL KHAN
4. AKHTAR KHAN
Under Guidance of
“IMRAN SIR”
In
Three Years Diploma Program in Engineering & Technology of Maharashtra State
Board of Technical Education, Mumbai (Autonomous)
ISO 9001:2015
At
Anjuman-I-Islam’s Abdul Razzak Kalsekar
4.0 Resources Required (major resources such as raw material, some machining facility, software etc.)
S. No. Name of Resource/material Specifications Qty Remarks
1 VS Code Version 11 - -
2 Python(Nirali textbook) - - -
**************
Annexure – II A
PART B (Outcomes after Execution and)
Format for Micro-Project Report (About 6-10 pages)
For 1st To 4th Semester
Title of Micro-Project
1.0 Brief Description (Importance of the project, in about 100 to 200 words)
Expenditure maintenance refers to the process of managing and keeping track of expenses. In today's
fast-paced world, it is crucial to maintain a record of all expenses to avoid overspending and keep
finances under control. Python is a popular programming language that can be used to create tools to
manage expenses effectively.
The tool will allow users to:
1. Add a new expense
2. View all expenses
3. View expenses by Month
4. Delete the data
5. Update the record
The aim of this project is to develop a simple command-line tool using Python that can help users
manage their expenses effectively. The tool will allow users to add new expenses, view all
expenses, view expenses by month, delete , update and save and load expenses from a SQLite.
2 Python(Nirali textbook) - - -
Create a database
import sqlite3
conn = sqlite3.connect("expenses.db")
cur = conn.cursor()
conn.commit()
conn.close()
# Main.py
import sqlite3
import datetime
import matplotlib.pyplot as plt
conn = sqlite3.connect("expenses.db")
cur = conn.cursor()
while True:
print("Select an option :")
print("1. Enter a new expense")
print("2. View expenses summery")
print("3. Update expenses")
print("4. Delete expenses")
choice = int(input())
if choice == 1:
date = input("Enter the date of the expenses
(YYYY-MM-DD): ")
description = input("Enter the description of
the expenses: ")
categories = cur.fetchall()
category_choice = int(input())
if category_choice == len(categories) +1:
category = input("Enter the new category
name: ")
else:
category = categories[category_choice - 1]
[0]
elif choice == 2:
print("Select an option: ")
print("1. View all expenses: ")
print("2. View monthly expenses by the
category: ")
view_choice = int(input())
if view_choice == 1:
cur.execute("SELECT * FROM expenses")
expenses_data = cur.fetchall()
for expense in expenses_data:
print(expense)
# connect to the database
# conn = sqlite3.connect('expenses.db')
# cur = conn.cursor()
cur.execute("""SELECT category,
SUM(price)
FROM expenses
WHERE strftime('%m', Date) = ? AND
strftime('%Y', Date) = ?
GROUP BY category""", (month, year))
expenses = cur.fetchall()
else:
exit()
elif choice == 3:
getDate = input("Enter the date of the
expenses (YYYY-MM-DD): ")
getDescription = input("Enter the
description of the expenses: ")
fetCategories = cur.fetchall()
category_choices = int(input())
if category_choices == len(fetCategories):
user_category =
fetCategories[category_choices - 1][0]
conn.commit()
elif choice == 4:
deDate = input("Enter the date of the
expenses (YYYY-MM-DD): ")
deDescription = input("Enter the description
of the expenses: ")
deCategories = cur.fetchall()
user_choice = int(input())
if user_choice == len(deCategories):
user_del_category =
deCategories[user_choice - 1][0]
conn.commit()
cur.execute("VACUUM")
conn.commit()
else:
exit()
View expenses
View a monthly expenses
Update expenses price
Delete expenses
7.0 Skill Developed / learning out of this Micro-Project. (In about 15 to 30 words)
We have learned about the core python concept and implemented it in our project which enhanced our
skills in python field and opens a new door to explore ourself in this field.
Teacher Evaluation Sheet
3 Project Proposal
7 Report Preparation
8 Presentation
9 Defense
Micro-Project Evaluation Sheet
Process Assessment Product Assessment Total
Part A - Project Project Methodology Part B - Project individual Marks
Proposal (2 marks) Report/Working Presentation/Viva
(2 marks) Model (4 marks) 10
(2 marks)
Note:
Every course teacher is expected to assign marks for group evolution in first 3 columns & individual
evaluation in 4TH columns for each group of students as per rubrics.
Signature…………………………………………………………………………………………...................