![]() ![]() Tasks-A nested list, where each inner list represents the information onĭate_list-a list of two integers representing the month and day for which """Print all the tasks for the given date from the given list of tasks. How can I approach this? I have defined functions for the month and the day, but I’m trying to first write a function that compares the dates and then the tasks depending on which ones come first. ![]() It should look like this: These are your tasks for Oct. My function has to take in a date in the form (denotes October 1) and print out all the the tasks for that day ordered based on their start times. Length of the task (in minutes): A task length of 2 hours and 20 minutes is 140 minutes. Start time of the task: minute (an int between 0 and 59). If the start time is 11:45 PM, this entry is 23. Start time of the task: hour (in a 24-hour format, hence an int between 1 and 24), e.g., for 9:15 AM, this entry is 9. The format for one task would look like this: 'email', 9, 15, 2, 0, 70, 'Answer all the emails received today.'ĭate of the task: month (an integer between 1 and 12).ĭate of the task: day (an integer between 1 and 31). I’m working from a file that has defined a list of tasks. I’m trying to write a function that manages a to-do list per day by using nested lists (with a depth of 2). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |