Question: Problem Statement: Implement a basic system to manage a list of tasks. Each task has a priority ( a number ) and a due date

Problem Statement: Implement a basic system to manage a list of tasks. Each task has a
priority (a number) and a due date (in the format YYYY-MM-DD). For example: (5,"2024-09-10"). Your system should be able to add tasks and display them sorted by priority. 2. Task Requirements:
1) Simple Data Structure:
i. Use a list to store tasks. Each task should be represented as a tuple (priority, due_date), e.g.,(5,"2024-09-10"). ii. Write a function to add a new task to the list. iii. Write a function to display all tasks.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!