Adding Tasks
Append new items.
Add More Tasks! ➕
Hi again! 👋 Our to-do list needs to GROW as we think of new things to do. 🌱
Today we learn how to add tasks to a list! Let's go! 🚀
print("Time to add tasks! ➕")Meet append() 📌
The magic word to add to a list is append()! 📌
It puts a new item at the end of the list. ✨
tasks = ["Eat breakfast"]
tasks.append("Go to school")
print(tasks)All lessons in this course
- A List of Tasks
- Adding Tasks
- Removing Tasks
- Showing the List