project documentation
project documentation
ON
“TO DO LIST”
GUIDED BY
VAIBHAV D.BHUSARI
SUBMITTED BY
ANANYA V. SANGOLE
COMPUTER SCIENCE
ALPHONSA SR.SEC.SCHOOL
SAWANGI MEGHE,WARDHA
2024-25
TABLE OF CONTENTS
Certificate
Acknowledgement
Coding
Output
Requirements
Bibliography
Certificate
This is to certify that ANANYA V.SANGOEL of
year 2024-25.
Examiner Examiner
--------------------- ---------------------
Signature of Principal
---------------------
Acknowledgement
I thank my Computer Science teacher
project.
Signature of Student
-----------------------------
CODING
tasks = []
print('HELLO USER!!!!')
print('Let''s schedule your day')
def view_all_tasks():
print("\nAll Tasks:")
for index, task in enumerate(tasks):
print(f"{index + 1}. {task['task']} (Due:
{task['due_date']}), Completed: {'Yes' if
task['completed'] else 'No'}")
def mark_as_completed(task_index):
try:
task = tasks[task_index - 1]
task["completed"] = True
print(f"Task '{task['task']}' has been marked as
completed.")
except IndexError:
print(f"Invalid task index: {task_index}")
def remove_task(task_index):
try:
task = tasks.pop(task_index - 1)
print(f"Task '{task['task']}' has been removed
from the list.")
except IndexError:
print(f"Invalid task index: {task_index}")
while True:
print("\nTo-Do List:")
print("1. Add a task")
print("2. View all tasks")
print("3. Mark a task as completed")
print("4. Remove a task")
print("5. Quit")
print("Goodbye!")
OUTPUT
1. Welcome Screen
2. To add a task
5. To remove a task
3. To view all tasks
4. To mark a task as completed
6. To quit
REQUIREMENTS
HARDWARE REQUIRED
SOFTWARE REQUIRED