Question: Problem 5 : Simple To - Do List Application Write a program that manages a simple to - do list for tasks. Create a function
Problem : Simple ToDo List Application
Write a program that manages a simple todo list for tasks.
Create a function displaytodolisttodolist that takes a list of tasks and prints each task with its index number.
Use a loop to display a menu of options:
Option : Add a taskOption : Remove a taskOption : View all tasksOption : Exit
For adding a task, prompt the user to enter the task name and append it to the list.
For removing a task, display the current list and prompt the user to enter the index of the task they want to remove.
The program should keep looping until the user selects Exit
Menu:
Add a task
Remove a task
View all tasks
Exit
Enter your choice:
Enter the task: Buy groceries
Enter your choice:
Enter the task: Clean the house
Enter your choice:
ToDo List:
: Buy groceries
: Clean the house
Enter your choice:
Enter the index of the task to remove:
Enter your choice:
ToDo List:
#: Clean the house
Enter your choice:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
