Sub topic 7
Tracking wins so progress stays visible
This chapter assumes you can read short Python functions and that you have already defined a small win for your habit and chosen a celebration for it. Here you will add a record of those wins, so progress stays visible after the good feeling fades.
Why a record helps
A celebration works in the moment. Your memory of the past weeks is less reliable. People tend to remember their misses more sharply than their quiet successes, so a habit that is going fine can still feel like it is failing. A tracker is an external record that corrects this. It shows what you did, not what you remember doing.
A tracker also supports the habit loop. Marking a win is a small, concrete response that follows the behavior. Many people find the mark itself satisfying, so it can become part of the celebration instead of a separate chore.
Choose the simplest tracker that works
A tracker needs to answer one question: did I do it today? Anything beyond that is optional. Common options are:
| Tracker | Effort to maintain | Best for |
|---|---|---|
| Paper calendar with an X per day | Very low | Habits done at home, where the calendar is in sight |
| Notes or checklist app | Low | People who already open it daily |
| Spreadsheet or script | Medium | People who want counts and weekly summaries |
Pick the one you will see at the moment you finish the habit. A tracker kept in a drawer fails the same way an unused gym membership does.
A tracker as data
A tracker can be only a set of dates on which you logged a win. The code below turns that set into a one-line view of the last week and counts the wins in that window.
from datetime import date, timedelta
def week_view(done_dates: set[date], today: date, days: int = 7) -> str:
"""Show the last `days` days, oldest first: X = win, . = no win."""
marks = []
for offset in range(days - 1, -1, -1):
day = today - timedelta(days=offset)
marks.append("X" if day in done_dates else ".")
return " ".join(marks)
def wins_in_window(done_dates: set[date], today: date, days: int = 7) -> int:
"""Count wins in the last `days` days, including today."""
window = {today - timedelta(days=offset) for offset in range(days)}
return len(done_dates & window)
done = {
date(2026, 11, 22),
date(2026, 11, 24),
date(2026, 11, 25),
date(2026, 11, 27),
}
today = date(2026, 11, 27)
print(week_view(done, today)) # . X . X X . X
print(wins_in_window(done, today)) # 4The output . X . X X . X is more useful than a feeling. It shows four wins in seven days, which is a habit forming with some gaps. It is not a failure.
What to look at
Two views answer different questions.
- Count in a window. "4 of the last 7 days" tells you how consistent you are. It does not collapse when you miss one day.
- Run of consecutive days. This is the streak. It is motivating while it lasts, but it resets to zero after one miss. The next chapter covers how to handle that.
For most people the window count is the steadier measure, so look at it first. A weekly total also gives you something to notice once a week. That is a small win about your wins.
How the tracker fits the loop
The glance at the recent view takes a few seconds. It is the step that makes progress visible, and it is easy to skip when you only mark and walk away.
Common errors
- Tracking too much. Logging mood, duration, and quality for a two-minute habit makes the record heavier than the habit. Start with a yes or no.
- Tracking a vague win. If "exercise" could mean a walk or a full workout, the mark means little. Use the win you defined earlier, such as "put on shoes and walk to the corner."
- Backfilling. Marking days afterward from memory makes the record unreliable and breaks the immediate link to the celebration. If you missed marking a day, leave it blank or note it honestly.
- Judging yourself by the gaps. A blank cell is information. Look at what was happening on those days instead of treating them as a verdict.
- Hiding the tracker. If you cannot see it, it does no work.
Exercise
Using the week_view and wins_in_window functions, what would they print for today = date(2026, 11, 27) and done = {date(2026, 11, 21), date(2026, 11, 26), date(2026, 11, 27)}? Explain why the first date counts or does not count.
Show answer
week_view prints . . . . . X X. The 7-day window covers November 21 through 27, so date(2026, 11, 21) is the oldest day shown and should appear as X. The correct output is therefore X . . . . X X, and wins_in_window returns 3. The window includes today and the six days before it, so the 21st is inside it.
Exercise
You track a daily two-minute stretch on a paper calendar kept in a drawer. After three weeks you notice you often forget to mark it. Name two changes that keep progress visible without making the habit bigger.
Show answer
Move the calendar to a place you pass right after stretching, such as the bedroom door or next to the mat, so you can mark it as part of the celebration. Also add a once-a-week glance, such as Sunday evening, to count marks in the last seven days. Both changes make the record visible and keep the marking immediate.