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.
- Host: GitHub
- URL: https://github.com/nikishita2006/habit_tracker
- Owner: Nikishita2006
- Created: 2025-06-21T07:41:55.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-21T07:45:51.000Z (12 months ago)
- Last Synced: 2025-06-21T08:30:42.840Z (12 months ago)
- Topics: conditional-statements, datastructure, files, json, oops-in-python, os, while-loop
- Language: Python
- Homepage:
- Size: 0 Bytes
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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