Skip to content
Hands-on Mentor
ENTR
Back to blog

Spaced repetition for students: how it works and how to start

Spaced repetition means reviewing what you learned at growing intervals. Learn why it works, how to build a schedule, and how to use it when you study coding.

4 min read

Spaced repetition is a study method where you review a topic several times, with longer and longer gaps between reviews. Instead of studying one topic for three hours in one night, you try to recall it tomorrow, then in three days, then in a week. With the same total study time, this usually helps you remember the topic for much longer.

What is the forgetting curve?

In 1885, the German psychologist Hermann Ebbinghaus tested himself with lists of meaningless syllables. He measured how much he could recall after different amounts of time. His result is called the forgetting curve: you forget fast in the first hours and days after learning, and then more slowly.

Keep two limits in mind. The test used one person and meaningless syllables. A topic you understand and connect to other ideas fades much more slowly. So exact numbers such as "you forget half in a day" do not fit every topic or every person. The general shape has appeared in later research: knowledge you never review fades, and knowledge you review fades more slowly.

Why does spaced repetition work?

Two effects work together:

  • The spacing effect: studying the same total time over several days gives better long-term memory than one long session.
  • The testing effect: trying to recall something helps more than reading it again. A little struggle is part of the work. Looking at your notes and thinking "I know this" is different from saying it without notes.

Spaced repetition combines both: you test yourself, and you do it at planned intervals.

What is a good spaced repetition schedule?

A common schedule reviews a topic after 1, 3, 7, 14, and 30 days. You can build it with a few lines of Python:

from datetime import date, timedelta

learned_on = date(2026, 12, 1)
gaps = [1, 3, 7, 14, 30]

for gap in gaps:
    print(learned_on + timedelta(days=gap))
2026-12-02
2026-12-04
2026-12-08
2026-12-15
2026-12-31

If you learn a topic on December 1, you review it on December 2, 4, 8, 15, and 31. These gaps are an example. Research does not show one correct schedule for everyone. A useful rule: the longer you want to remember something, the wider the gaps can grow. When a topic feels hard, shorten the gap. When it feels easy, lengthen it.

You can learn the date calculation in the [datetime and collections](/learn/python/datetime-collections) lesson.

How do you study with spaced repetition?

Use self-testing. Rereading leaves a much weaker trace.

Less effectiveMore effective
Reading your notes againSummarizing the topic without notes
HighlightingAsking yourself questions and answering them
Reading a worked exampleClosing it and solving it yourself
Watching a lessonExplaining the topic to another person

Add these habits to your plan:

  • A short review every day. Before you start a new topic, spend 5 to 10 minutes on older ones.
  • Keep your mistakes. Questions you got wrong are your best review material.
  • Study across the term. Cramming the night before an exam can work for the next day, but the knowledge fades fast.
  • Mix topics. Reviewing different topics together teaches you to choose the right method for each problem.

How do you use spaced repetition for coding?

Coding skills fade like any other skill. Syntax, patterns, and error messages need review, and you also need to write code from memory. Three ways to do it:

  • After each lesson, close it and write the main example again without looking.
  • Keep a list of the errors you made and review it each week.
  • Come back to a finished exercise after a few days and solve it from a blank file.

On Hands-on Mentor, every lesson ends with a 10-question quiz. Questions you miss go into a review queue and come back near the time you would forget them. If you answer correctly, the gap grows. If you answer wrong, the question returns sooner. You do not need to keep a calendar. The Review page shows what is due, and a few minutes a day is enough.

Common mistakes

  • Confusing reading with reviewing. A page that looks familiar does not show that you can recall it.
  • Putting everything in one day. One long review night is not spaced repetition.
  • Avoiding the struggle. Some difficulty in recalling means the method works. If you recall nothing at all, shorten the gap.
  • Memorizing without understanding. Spaced repetition protects what you understand. Study a confusing topic again first.
  • Quitting after one missed day. Continue the next day from where you stopped.

What to read next

  • Try it now: pick a lesson in the [Python course](/courses/python) and take its quiz.
  • Learn the date tools behind the schedule in [datetime and collections](/learn/python/datetime-collections).
  • Plan your first month with [how to learn a new skill in 30 days](/blog/first-30-days-new-skill).
  • Make each study session count with the [Pomodoro technique for studying](/blog/pomodoro-technique-for-studying).
  • #spaced repetition
  • #study techniques
  • #memory
  • #learning to code
All posts