0% found this document useful (0 votes)
3 views12 pages

Cs Project

The document is a project file for a To-Do List application created by Harsh Kushwaha for a Computer Science class. It includes an acknowledgment section, an overview of the project, its features, and the source code for the program. The project aims to help users manage tasks effectively through a simple Python application.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views12 pages

Cs Project

The document is a project file for a To-Do List application created by Harsh Kushwaha for a Computer Science class. It includes an acknowledgment section, an overview of the project, its features, and the source code for the program. The project aims to help users manage tasks effectively through a simple Python application.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

SHRI MAHAPRABHU PUBLIC

SCHOOL
Shri Narayan Ashram,Shivkuti, Prayagraj-211004

COMPUTER SCIENCE PROJECT FILE


TOPIC:- To-Do list

NAME:- Harsh Kushwaha


CLASS :- 11 A1
Acknowledgement
I would like to express my sincere gratitude to my Computer
Science teacher, Mr. Ankit Prabhakar , for their invaluable
guidance and support throughout this project.Their insightful
advice,encouragement, and expertise in programming have been
instrumental in the successful completion of this work.

Their dedication to teaching and their enthusiasm for computer


science have inspired me to explore the field of Computer science
and Artificial Intelligence. The knowledge and skills I have gained
during this project will undoubtedly help me in future endeavors.

Thank you for your motivation, and continuous support. This


project would not have been possible without your guidance.

Harsh Kushwaha
SHRI MAHAPRABHU PUBLIC SCHOOL
17/03/2025
CONTENTS

▪​ About the project


▪​ How it works?
▪​ Source code
▪​ Bibliography
ABOUT THE PROJECT
A To-Do List Python program is a simple application that allows
users to add, view, and manage tasks they need to accomplish.

Benefits of a to-do list


A to-do list Python program can offer several benefits, including:
●​ Organization: It helps users keep track of tasks, deadlines,
and priorities, making it easier to stay organized and
manage time effectively.
●​ Task Management: It allows users to add, remove, edit, and
view tasks, which can improve productivity and ensure that
nothing is forgotten.
●​ Customization: Users can personalize the program to fit their
needs (e.g., by adding due dates, categories, or priorities

Features of To-do list:


●​ Add Task: Allows users to add a new task with a title and
optional description.
●​ View Tasks: Displays a list of all tasks, including their status
(e.g., incomplete or completed).
●​ Delete Task: Allows users to delete a specific task from the
list.
●​ Mark Task as Completed: Lets users mark tasks as
completed, which could either remove them from the active
list or change their status.
PROGRAM CODE
todo_list = []
while True:
print("\n--- To-Do List Menu ---\n1. View List\n2.
Add Task\n3. Mark Completed\n4. Remove Task\n5.
Exit")
choice = input("\nEnter choice (1-5): ")

if choice == '1':
print("\n--- Your To-Do List ---" if todo_list else
"\nYour To-Do List is empty!")
for i, task in enumerate(todo_list, start=1):
print(f"{i}. {task['name']} - {'Completed' if
task['completed'] else 'Not Completed'} - Deadline:
{task.get('deadline', 'No deadline')}")

elif choice == '2':


task_name = input("\nEnter task name: ")
task_deadline = input("Enter deadline (e.g.,
YYYY-MM-DD): ")
todo_list.append({"name": task_name,
"completed": False, "deadline": task_deadline})
print(f"Task '{task_name}' added with deadline
'{task_deadline}'.")

elif choice == '3':


if not todo_list:
print("\nYour To-Do List is empty!")
else:
for i, task in enumerate(todo_list, start=1):
print(f"{i}. {task['name']} - {'Completed' if
task['completed'] else 'Not Completed'} - Deadline:
{task.get('deadline', 'No deadline')}")
try:
task_num = int(input("\nEnter task number
to mark as completed: "))
if 1 <= task_num <= len(todo_list):
todo_list[task_num - 1]["completed"] =
True
print(f"Task '{todo_list[task_num -
1]['name']}' marked as completed.")
else:
print("Invalid task number.")
except ValueError:
print("Please enter a valid number.")

elif choice == '4':


if not todo_list:
print("\nYour To-Do List is empty!")
else:
for i, task in enumerate(todo_list, start=1):
print(f"{i}. {task['name']} - {'Completed' if
task['completed'] else 'Not Completed'} - Deadline:
{task.get('deadline', 'No deadline')}")
try:
task_num = int(input("\nEnter task number
to remove: "))
if 1 <= task_num <= len(todo_list):
removed_task = todo_list.pop(task_num
- 1)
print(f"Task '{removed_task['name']}'
removed.")
else:
print("Invalid task number.")
except ValueError:
print("Please enter a valid number.")

elif choice == '5':


print("\nExiting. Goodbye!")
break

else:
print("\nInvalid choice. Please choose 1-5.
OUTPUT OF SOURCE CODE
BIBLIOGRAPHY

●​https://openai.com/chatgpt/
●​www.google.com

You might also like