I built a Todo App with Python! 🎉
As a developer from Akwa Ibom learning in Lagos, I wanted to build something real.
🛠️ Tech Stack
- Python
- CLI (Command Line Interface)
- File handling for saving tasks
✨ Features
- ➕ Add tasks
- ✅ Mark as done
- 🗑️ Delete tasks
- 📋 View all tasks
💻 Code Snippet
python
tasks = []
def add_task(task):
tasks.append(task)
print(f"Added: {task}")
def show_tasks():
for i, task in enumerate(tasks, 1):
print(f"{i}. {task}")
# My Todo App starts here!
while True:
print("\n1. Add Task | 2. View | 3. Exit")
choice = input("Choose: ")
if choice == "1":
t = input("Enter task: ")
add_task(t)
elif choice == "2":
show_tasks()
elif choice == "3":
break
Top comments (0)