Skip to content
Tutorials Center
My learning

Topics

Lesson 34 of 36 ยท Projects and Practice

Project: A Revision Timetable Builder

Build a small revision timetable generator in Python that weights topics by confidence, skips rest days and adds review sessions, then adapt it to your exams.

In this project you will build a small program that turns your topics and confidence scores into a day-by-day revision timetable. It puts together ideas from earlier lessons: building a revision plan, spaced practice and rest days.

The program is a stand-in for a planner app: it only applies rules to your data. You decide what is realistic. You will build it in four steps, and each step runs on its own.

Step 1: Describe your data

First, store your topics, confidence (1 to 5) and the dates of your study period. We use a Python dictionary.

Python Step 1: topics and weights

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The weights tell you how to share your time. Topics you feel unsure about get larger shares.

Step 2: Share sessions across topics

Decide how many sessions you can fit. Suppose you have 12 sessions of 45 minutes. Convert shares into whole numbers of sessions using rounding, then fix any rounding error.

Python Step 2: turn shares into whole sessions

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Every topic should get at least one session. If you have very few sessions and many topics, you will need to add a rule for that.

Step 3: Build the calendar

Now we place the sessions on dates. We use interleaving: instead of doing all of a topic at once, we rotate through topics. We also skip rest days.

flowchart LR
    A["Topics and confidence"] --> B["Weights"]
    B --> C["Sessions per topic"]
    C --> D["Mix topics in rotation"]
    D --> E["Place on dates, skip rest days"]

The pipeline from your inputs to a dated timetable.

Python Step 3: the timetable

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The output is a list of dated sessions. Because the rotation cycles through topics, you meet each one repeatedly rather than in a single block.

Step 4: Add review sessions

Add spaced reviews: after each topic's first session, schedule a short review 1, 3 and 7 days later. The code below shows the dates only; you would then add them to the calendar.

Python Step 4: spaced review dates

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

You might notice that some review dates land on rest days. A complete version would move them to the next study day.

Ideas to extend it

  • Read topics from a file instead of typing them.
  • Add exam dates and compute the days left.
  • Weight by the mark value of each topic as well as confidence.
  • Add rest days before each exam.
  • Print the plan as a table for your wall.

A program is only a helper. Once you have a draft, check it against your real life: homework, sport, family time. Remove sessions that are not realistic and keep slack for catch-up.

Check your understanding

Quick check ยท 3 questions

of 3 answered You scored / 3 ยท perfect!

  1. 1. In this project, what does the weight 6 - confidence do?

    A confidence of 1 gives weight 5; a confidence of 5 gives weight 1.
  2. 2. Why rotate through topics rather than finishing one at a time?

    Mixing topics supports interleaving and brings each topic back more than once.
  3. 3. What should you do with a review date that falls on a rest day?

    Rest days are part of a sustainable plan, so shift the review.

Summary

  • Convert confidence scores into weights, and weights into whole sessions.
  • Rotate through topics to interleave, and skip rest days.
  • Add spaced review dates after the first session of each topic.
  • The program is a helper; adjust its output to your real life.

Next: Project: A Flashcard Quiz Engine