Dec-25-2018, 05:57 PM
To implement these with the class, the functions need to be methods of the class and todos_print() will need to use self.tdate. From what I'm seeing, it appears that you intend to make a list of todo items. In that case, you should have a second class to contain and manage that list. Something like this:
class Todo_list: todos = [] def add_todo_item(self, todo): if isinstance(todo, tclass): self.todos.append(todo) def print_todo_list(self): print(self.todos)