.”, “multytasks”: “Write new task by + or new line”, “help”: “Help message…” } self.task_file = “data/tasks.json” self.done_tasks = [] self.undone_tasks = [] def load_tasks(self): # create file if not os.path.exists(self.task_file): with open(self.task_file, ‘w’) as f: f.write(json.dumps([])) with open(self.task_file) as f: tasks = json.loads(f.read()) for t in tasks: if ‘done’ in t and int(t[‘done’]) == […]