0% found this document useful (0 votes)
57 views

Python Notes

Python unit 1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views

Python Notes

Python unit 1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 23

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

ZEAL EDUCATION SOCIETY’S

ZEAL POLYTECHNIC
MICRO PROJECT

Academic year: 2023-24

To do list application
Program: Computer Engineering
Program Code: CO
Course: Programming with Python
Course Code: 22616
Class: TYCO-B
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

CERTIFICA
TE
This is to certify that Mr. Saksham Vijay Pakhale Roll No. 05 of 6th Semester of Diplomain
Computer Engineering of Institute, ZEAL POLYTECHNIC (Code: 0988) has completed the
Micro Project satisfactorily in Subject “Programming With Python” (22616) for the academic
year 2023-2024 as prescribed in the curriculum.

Place: Narhe, Pune. Enrollment No: 2109880454

Date: Exam Seat No:

Subject Teacher Head of the Department Principal


MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

CERTIFICA
TE
This is to certify that Mr.Prathmesh Vijaykumar Patil Roll No. 07 of 6th Semester of Diploma
in Computer Engineering of Institute, ZEAL POLYTECHNIC (Code: 0988) has completed the
Micro Project satisfactorily in Subject “Programming With Python” (22616) for the academic
year 2023-2024 as prescribed in the curriculum.

Place: Narhe, Pune. Enrollment No: 2109880462

Date: Exam Seat No:

Subject Teacher Head of the Department Principal


MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

CERTIFICA
TE
This is to certify that Mr. Suyog Shivaji Sutar , Roll No.29 of 6th Semester of Diplomain
Computer Engineering of Institute, ZEAL POLYTECHNIC (Code: 0988) has completed the
Micro Project satisfactorily in Subject “Programming With Python” (22616) for the academic
year 2023-2024 as prescribed in the curriculum.

Place: Narhe, Pune. Enrollment No: 2109880511

Date: Exam Seat No:

Subject Teacher Head of the Department Principal


MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

CERTIFICA
TE
This is to certify that Mr. Rohit Digmbar Anarase , Roll No. 31of 6th Semester of Diplomain
Computer Engineering of Institute, ZEAL POLYTECHNIC (Code: 0988) has completed the
Micro Project satisfactorily in Subject “Programming With Python” (22616) for the academic
year 2023-2024 as prescribed in the curriculum.

Place: Narhe, Pune. Enrollment No: 2109880333

Date: Exam Seat No:

Subject Teacher Head of the Department Principal

.
INDEX

SR NO. CONTENT PAGE NO.

1 ABSTRACT 8

2 MAIN CONTENT 8

3 PROGRAM CODE AND OUTPUT 10

4 CONCLUSION 11

5 WEEKLY PROJECT REPORT 12

8
6 REFERENCES USED

7 EVALUATION SHEET 9
ABSTRACT:

The project aims to develop a comprehensive To-Do List application to assist users in organizing tasks
efficiently. The application will provide a user-friendly interface with features including task
categorization, priority setting, due date tracking, and task completion tracking. Users will have
the ability to create, edit, and delete tasks, as well as receive reminders and notifications.
Additionally, the application will support synchronization acr oss multiple devices to ensure
seamless accessibility. By offering a robust and intuitive task management solution, the To-Do
List application seeks to enhance productivity and time management for individuals across
various domains..
MAIN CONTENT:

In an era marked by increasingly busy schedules and demanding responsibilities, effective


task management has become indispensable for individuals striving to maintain productivity
and balance in their lives. To address this need, the To-Do List project emerges as a
solution aimed at simplifying task organization and enhancing productivity.

This project seeks to develop a user-friendly application that streamlines the process of
creating, managing, and tracking tasks. By leveraging modern technology and intuitive
design principles, the To- Do List application aims to provide users with a seamless and
efficient task management experience. Whether it's managing personal errands, work-related
projects, or academic assignments, the application offers a centralized platform for users to
prioritize, schedule, and complete tasks effectively.

Through the implementation of features such as task categorization, priority setting, due
date tracking, and synchronization across multiple devices, the To-Do List application
empowers users to stay organized and focused amidst the myriad of responsibilities they
face. Furthermore, the integration of reminders and notifications ensures that important
tasks are not overlooked, thereby fostering accountability and timely completion.

In essence, the To-Do List project endeavors to facilitate better time management, increased
productivity, and reduced stress for individuals across various domains. By providing a
comprehensive and customizable task management solution, the application aims to empower
users to take control of their daily lives and achieve their goals with greater efficiency and e
PROGRAM CODE :

import tkinter as tk

class ToDoList:
def _init_(self, root):
self.root = root
self.root.title("To-Do
List")

self.tasks = []

self.task_listbox = tk.Listbox(self.root, width=50, height=10)


self.task_listbox.pack(pady=20)

self.entry_task = tk.Entry(self.root,
width=50) self.entry_task.pack()

self.add_button = tk.Button(self.root, text="Add Task",


command=self.add_task)
self.add_button.pack(pady=2)

self.delete_button = tk.Button(self.root, text="Delete Task",


command=self.delete_task)
self.delete_button.pack(pady=2)

def add_task(self):
task = self.entry_task.get()
self.tasks.append(task)
self.update_task_listbox()

def delete_task(self):
selected_task_index =
self.task_listbox.curselection() if
selected_task_index:
del
self.tasks[selected_task_index[0
]] self.update_task_listbox()

def update_task_listbox(self):

self.task_listbox.delete(0,
9
tk.END) for i, task in
enumerate(self.tasks):
self.task_listbox.insert(i, task)

10
root = tk.Tk()
todo_list = ToDoList(root)
root.mainloop()

11
OUTPUT:

Add Task-

12
Delete Task-

13
EXPLAINATION OF CODE:

1. Import Tkinter: The first line imports the Tkinter library,


which is a standard GUI (Graphical User Interface) toolkit for
Python. It is used to create GUI applications.

Python code-

import tkinter as

tk

2. Define ToDoList class: This class represents the to-do list


application. It contains methods to manage tasks, such as
adding and deleting tasks, as well as updating the task list.

Python code-

class

ToDoList:
def _init_(self, root):
...
def add_task(self):
...
def delete_task(self):
...
def update_task_listbox(self):
...

3. Initialize the ToDoList class: The _init_ method serves as the


constructor for the ToDoList class. It initializes the instance
variables and creates the GUI elements (widgets) for the
application.

Python code-

def _init_(self, root):


self.root = root
self.root.title("To-Do
List")
14
self.tasks = [ ]

self.task_listbox = tk.Listbox(self.root, width=50, height=10)


self.task_listbox.pack(pady=20)

15
self.entry_task = tk.Entry(self.root, width=50)
self.entry_task.pack()

self.add_button =
tk.Button(self.root, text="Add
Task", command=self.add_task)
self.add_button.pack(pady=2)

self.delete_button =
tk.Button(self.root, text="Delete
Task", command=self.delete_task)
self.delete_button.pack(pady=2)

- self.root: Reference to the main Tkinter window.


- self.tasks: List to store the tasks.
- self.task_listbox: Tkinter Listbox widget to display tasks.
- self.entry_task: Tkinter Entry widget for inputting new tasks.
- self.add_button: Tkinter Button widget to add tasks.
- self.delete_button: Tkinter Button widget to delete tasks.

4. add_task method: This method is called when the user clicks


the "Add Task" button. It retrieves the task text from the entry
widget, adds it to the tasks list, and updates the task listbox.

Python code-

def add_task(self):
task = self.entry_task.get()
self.tasks.append(task)
self.update_task_listbox()

5. delete_task method: This method is called when the user


clicks the "Delete Task" button. It retrieves the index of the
selected task in the task listbox, deletes the corresponding task
from the tasks list, and updates the task listbox.

Python code-

def delete_task(self):
selected_task_index =
self.task_listbox.curselection() if
16
selected_task_index:

17
del
self.tasks[selected_task_index[0
]] self.update_task_listbox()

6. update_task_listbox method: This method updates the task


listbox widget to display the tasks stored in the tasks list.

Python code-

def update_task_listbox(self):
self.task_listbox.delete(0,
tk.END) for i, task in
enumerate(self.tasks):
self.task_listbox.insert(i, task)

7. Create the Tkinter root window: This line creates the main
application window using Tkinter.

Python code-

root = tk.Tk()

8. Instantiate the ToDoList class: An instance of the ToDoList


class is created, passing the root window as an argument.

Python code-

todo_list = ToDoList(root)

9.Start the Tkinter event loop: This line starts the Tkinter event
loop, which listens for events (such as button clicks) and
updates the application interface accordingly.

Python code-

root.mainloo

18
p()

19
CONCLUSION:

the To-Do List project represents a significant step towards


enhancing task management and productivity for individuals in
today's fast-paced world. Through the development of a robust
and user-friendly application, we have endeavored to provide
users with a comprehensive solution for organizing, prioritizing,
and tracking their tasks effectively.

By incorporating features such as task categorization, priority


setting, due date tracking, and synchronization across multiple
devices, the To-Do List application offers a versatile platform
that caters to the diverse needs of users across various
domains. Moreover, the integration of reminders and
notifications serves to reinforce accountability and ensure that
important tasks are not overlooked or forgotten.

As we look towards the future, the To-Do List project remains


committed to continual improvement and innovation. We
recognize the ever-evolving nature of task management and
will continue to explore new ways to enhance the user
experience and adapt to changing needs and preferences.

Ultimately, our goal is to empower individuals to take control of


their daily lives, optimize their time and resources, and achieve
their goals with greater efficiency and confidence. With the To-
Do List application, users can navigate their busy schedules
with ease, knowing that they have a reliable tool to support
them every step of the way.

20
WEEKLY PROGRESS REPORT
MICRO PROJECT

SR. NO. WEEK ACTIVITY PERFORMED SIGN OF GUIDE DATE

1 3rd Discussion and finalization of topic

2 4th Preparation and submission of


Abstract
3 5th Literature Review

4 6th Collection of Data

5 7th Collection of Data

6 8th Discussion and outline of Content

7 9th Formulation of Content

8 10th Editing and proof Reading of


Content
9 11th Compilation of Report And
Presentation
10 12th Seminar

11 13th Viva

12 14th Final submission of Micro Project

Sign of the student Sign of the faculty: Prof.Puri sir.


REFRENCE: Web Scraping with Python Tutorial : Step by Step Guide (nanonets.com)
https://chat.openai.com/c/a589dc07-9b88-41c3-aa02-b2e499d1c710

21
MICRO PROJECT EVALUATION SHEET
Academic Year: 2023-2024 Name of the Faculty: prof.Puri sir
Course: computer engineering Course code: 22616
Semester: Vi

Title of the project: web scrapping

COs addressed by Micro Project:


A:
B:
C:
D:

Major learning outcomes achieved by students by doing the project


(a) Practical outcome:
1)

2)

(b) Unit outcomes in Cognitive domain:


1)

2)

(c) Outcomes in Affective domain:


1)

2)

Comments/suggestions about team work /leadership/inter-personal


communication (if any)
…………………………………………………………………………………………………
……………

(Signature of faculty)

22
23

You might also like