Removing Tasks
Cross things off.
Cross It Off! ❌
Hooray! 🎉 You finished a chore! Time to cross it off your to-do list! ✅
Today we learn how to REMOVE tasks from a list. Let's do it! 🚀
print("Let's cross off finished tasks! ❌")Meet remove() 🗑️
The word remove() takes a task OUT of the list by its name! 🗑️
Just tell it which task to remove. ✨
tasks = ["Eat", "Study", "Play"]
tasks.remove("Study")
print(tasks)All lessons in this course
- A List of Tasks
- Adding Tasks
- Removing Tasks
- Showing the List