MCPcopy Create free account
hub / github.com/geekcomputers/Python / add_task

Function add_task

TaskManager.py:20–24  ·  view source on GitHub ↗
(task, deadline)

Source from the content-addressed store, hash-verified

18
19
20def add_task(task, deadline):
21 tasks = load_tasks()
22 tasks.append({"task": task, "deadline": deadline, "completed": "No"})
23 save_tasks(tasks)
24 print("Task added successfully!")
25
26
27def show_tasks():

Callers 1

TaskManager.pyFile · 0.70

Calls 3

load_tasksFunction · 0.70
save_tasksFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected