To-Do List Manager
To-Do List Manager
tasks=[]def add_task():
task = input("Enter a new task: ")
tasks.append(task)
print("Task added successfully!")3.Function to view tasks
def view_tasks():
if tasks:
print("Your tasks:")
for i, task in enumerate(tasks, start=1):
print(f"{i}. {task}")
else:
print("Your task list is empty.")
4. Function to delete task
Creating a menu and calling the functions as per user's choice
Last updated