Question: Simple Data Structure ( 2 marks ) : i . Use a list to store tasks. Each task should be represented as a tuple (

Simple Data Structure (2 marks): 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!