Question: In Python please Create another class named TodoList. It should have the following methods: get_complete todos This method should return a list of all completed
Create another class named TodoList. It should have the following methods: get_complete todos This method should return a list of all completed Todo objects stored in the TodoList get incomplete todos Arguments: none This method should return a list of all incomplete Todo objects stored in the TodoList add todo Arguments: a Todo object to add to this TodoList This method should add the argument to the list of Todo objects stored in this TodoList remove todo Arguments: a Todo object to remove from this TodoList This method should remove the specified Todo object from the list of Todos stored in this TodoList sort Arguments: a boolean representing the sort order This method should sort the Todo objects stored in this TodoList by due date If the argument is True, earlier dates should come before later dates. If it is False, later dates should come first. This method does not return anything; after calling it, the lists returned from get complete_ todos and get incomplete todos should be sorted in the specified order
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
