An open API service indexing awesome lists of open source software.

https://github.com/nikishita2006/habit_tracker

A beginner-friendly Python project to track daily habits. Supports adding, deleting, and marking tasks, shows progress with graphs, and automatically saves your data using files.
https://github.com/nikishita2006/habit_tracker

conditional-statements datastructure files json oops-in-python os while-loop

Last synced: about 1 month ago
JSON representation

A beginner-friendly Python project to track daily habits. Supports adding, deleting, and marking tasks, shows progress with graphs, and automatically saves your data using files.

Awesome Lists containing this project

README

          

# 🧠 Habit Tracker in Python
A beginner-friendly Python project to track daily habits. Supports adding, deleting, and marking tasks, and automatically saves your data using files.
## 🚀 Features

- ✅ Add one or multiple habits at once
- ✅ Delete tasks from your habit list
- ✅ Mark tasks as completed for a specific day
- ✅ Automatically calculates streaks (days where all tasks were completed)
- 💾 Auto-save your tasks and progress to a file (`habit_data.json`)
- 🔁 Automatically load previous data on startup

---

## 🛠️ Technologies and Concepts Used

- **Python Basics**: Variables, functions, lists, sets, dictionaries
- **Object-Oriented Programming (OOP)**: Classes and methods to organize code
- **File Handling**:
- `json` to save and load data
- `os.path.exists()` to safely handle files
- **Control Structures**: `if-else`, `while`, `try-except` for user interaction