Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions week3_homework.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
"def delete_task(task_number):\n",
" global TaskList\n",
" # Check if task number exists in TaskList\n",
" \n",
" if task_numer <1 or task_number>len(TaskList):\n",
" if task_number <1 or task_number > len(TaskList):\n",
" print(f\" ❌ Task {task_number} not found.\")\n",
" return\n",
Expand Down Expand Up @@ -319,9 +319,9 @@
" print(f\"\\nTotal Tasks: {len(TaskList)}\")\n",
"\n",
"#function main to display menu and get user input\n",
"##========================================================\n",
"##=================== Main Function =====================\n",
"##========================================================\n",
"##==================================================================\n",
"##=================== Main Function ===========================\n",
"##===========================================================\n",
"\n",
"def main():\n",
" while True:\n",
Expand Down Expand Up @@ -352,8 +352,7 @@
" else:\n",
" print(\"Invalid choice. Please try again.\") \n",
"if __name__ ==\"__main__\":\n",
" main() # call main function to start the program\n",
"# function to complete task"
" main() # call main function to start the program # function to complete task"
]
}
],
Expand Down