Start with the language and outcomes you need to learn

Programming fundamentals are easier to study when you turn broad topic names into things you can do. “Understand loops” is too vague to practise. “Trace a loop and state the value of each variable after every iteration” gives you a task with a checkable answer.

Start with the course outline, assessment guidance and your own notes. Write down the language and version used in your course, the topics assessed, and any rules about permitted tools. Examples in this guide use Python 3; if your course uses another language, keep the reasoning and translate the syntax. Do not assume that features or conventions are identical across languages.

For each topic, make an outcome in the form “I can…”. For example:

  • predict the output of a short program without running it;
  • choose a suitable conditional or loop for a described task;
  • write a function with defined inputs, output and behaviour;
  • find a boundary error using a small test case;
  • explain why a data structure fits a particular operation.

Use your own slides, worksheets, textbook extracts and corrected exercises to build a revision board. Keep each section small enough to review in one sitting. A MySummaries board on this topic could organise the notes into language basics, control flow, functions, collections and testing:

Programming Fundamentals Core programming conceptsStudy
Foundations — concepts, tracing and small programsCore programming concepts5 sections · 3 columns
Variables and expressions
  • Assignment — `x = x + 1` evaluates the right-hand side, then rebinds `x`.
  • Integer division — in Python 3, `7 // 2` is `3`; `7 / 2` is `3.5`.
  • `=` assigns a value; `==` compares two values.
Functions
  • A parameter is named in the function definition; an argument is supplied at a call.
  • `return` sends a value back to the caller; `print` displays text and returns `None`.
  • Use a small example call to check the function's inputs and output.
Selection and Boolean logic
  • An `if` branch runs when its condition is truthy; `elif` checks only after earlier conditions fail.
  • `and` is true only when both operands are true; `or` is true when at least one is true.
  • Test boundaries: for `0 <= score <= 100`, check `0`, `100`, `-1` and `101`.
Lists and testing4 due
  • Python list indexes start at `0`; for a list of length `n`, the last valid index is `n - 1`.
  • A list is mutable: `items.append(x)` changes the existing list.
  • Test an ordinary case, an empty or smallest case, and a boundary or invalid case.
Iteration
  • `range(4)` produces `0, 1, 2, 3` — the stop value is excluded.
  • A `while` loop needs a condition that can eventually become false.
  • Trace the loop variable and accumulator before and after each iteration.

The board is not a replacement for your course material. Check details against the language and notation your course teaches. In particular, do not learn an example by memorising its output alone: record the rule that produces the output and practise applying it to a changed example.

Make each study session produce evidence

A useful session alternates recall, code and checking. Set a modest scope, such as tracing a loop or writing a function, rather than trying to “revise programming” in one sitting. A 45-minute session might use 5 minutes to choose an outcome, 10 minutes to recall rules without looking, 20 minutes to solve a task, and 10 minutes to compare your work with notes and record errors. Adjust the timings to your schedule; keep the solve-and-check stages.

Before opening an example solution, predict what the code does. For tracing, make a table with columns for the line, variable values and output. Update it in execution order. If a value changes, distinguish reassignment from mutation. If the trace goes wrong, identify the first line where your prediction differs from the actual rule. That first divergence is more useful than simply copying the final output.

For code-writing practice, state the input, expected output and constraints first. Write the smallest version that meets them. Run it on a normal case, then deliberately try a boundary case and a case that could expose an assumption. For a function that finds the largest value, for example, ask what should happen with one item and whether an empty list is allowed. Follow your course's specification rather than silently inventing behaviour.

Use errors as categories for review. Common categories include syntax errors, wrong operator, wrong boundary, incorrect update inside a loop, returning the wrong value, and testing only one case. Keep a short error log: task, first incorrect step, rule involved, and a new test that would catch the mistake. Turn recurring errors into questions for later retrieval practice.

Build a short “must know” checklist

A checklist should contain rules you can state and use, not topic labels. Keep it to a handful of high-value facts. When you miss an item, return to the relevant section of your notes, then solve a fresh example. Do not treat recognition—“that looks familiar”—as proof that you can produce or apply the rule.

A MySummaries core checklist for a Python-based introduction might look like this:

Key pointsCore programming concepts
Python 3: `7 / 2` is `3.5`; `7 // 2` is `3`; `%` gives the remainder.
`range(start, stop)` includes `start` and excludes `stop`; `range(4)` gives `0, 1, 2, 3`.
A function's `return` value can be assigned or used by its caller; `print` displays output but is not a substitute for returning a result.
For a list of length `n`, valid positive indexes run from `0` to `n - 1`; an empty list has no valid element index.

Check each line against your course language before using the checklist. If a fact has an exception or depends on a definition in your materials, add that qualification rather than learning an over-simple rule. Then test the checklist by explaining each item aloud and writing a tiny example from memory.

Practise retrieval, then vary the problem

Flashcards can help with compact facts: operator meaning, range boundaries, terminology and distinctions such as parameter versus argument. They are less suitable for learning to design a whole program. For that, write and trace code. Use cards as a quick retrieval drill: answer before turning a card, check the exact point you missed, and grade honestly. A correct answer reached by guessing or with substantial hesitation needs another review.

A MySummaries flashcard drill from this board could include:

Cards — Core programming concepts7 due

In Python 3, what are the values of `7 / 2` and `7 // 2`?

`7 / 2` is `3.5`; `7 // 2` is `3`.

All 7 cards
In Python 3, what are the values of `7 / 2` and `7 // 2`?`7 / 2` is `3.5`; `7 // 2` is `3`.
What values does `range(4)` produce?`0, 1, 2, 3`; the stop value `4` is excluded.
What is the difference between a parameter and an argument?A parameter is named in a function definition; an argument is supplied when the function is called.
What does a function's `return` statement do?It sends a value back to the caller, where it can be used or assigned.
What is the last valid index of a non-empty Python list of length `n`?`n - 1`; indexing starts at `0`.
What does `==` do, and how does it differ from `=`?`==` compares values; `=` assigns a value to a name.
What must eventually happen for a `while` loop to stop normally?Its condition must become false; the loop body often updates a value used by that condition.

That is a MySummaries deck, filled with programming fundamentals material. Yours is written from your own notes. Start free

After the cards, change one detail in a practice problem and solve it again. Change the loop's starting value, the list length, or the function input. This checks whether you understand the rule rather than remember one worked answer. For code you write, add a test that would fail if the original mistake returned. Keep the new test beside the error-log entry.

Use a repeatable method for unfamiliar questions

When you meet a new programming task, work in this order:

  1. Clarify the specification. Identify inputs, required result, constraints and any stated behaviour for unusual cases.
  2. Choose a representation. Decide what values need to be stored and whether a simple variable, list or other taught structure fits.
  3. Plan the steps. Write a brief algorithm or trace before adding syntax. Check branches and repetition explicitly.
  4. Implement a small version. Use clear names and one responsibility per function where that fits the task.
  5. Test and explain. Try an ordinary input and a boundary input. Explain what each important line contributes.

For tracing, work line by line rather than jumping to a guessed result. For debugging, reproduce the problem with the smallest input you can find, then inspect the first incorrect value. Avoid changing several lines at once: doing so makes it harder to tell which change fixed the behaviour.

Use the same method when revising material from a lecture. Pick one idea, state it in your own words, trace or code a minimal example, then compare your explanation with the source. A MySummaries audio lecture built from the board might connect loop tracing to boundary tests:

Lecture — Core programming concepts8 min
Trace the loop before you run itUses a small accumulator loop to show how iteration, range boundaries and testing fit together.
03:1008:00
Speed1×1.25×1.5×2×

Transcript · tap any word to jump there

Suppose `total` starts at zero and the loop is `for i in range(1, 4): total += i`. Before running it, list the values supplied by the range: one, two, and three. The stop value, four, is not included. Now trace the accumulator: after the first pass it is one, after the second it is three, and after the third it is six. Each update uses the previous value of `total`.

A useful check is to change the stop value to one. The range then contains only zero? No: with `range(1, 1)`, it contains no values, so the loop body does not run and `total` remains zero. This is why checking the start and stop values matters. Do not infer the number of iterations from the difference between the values without checking how the range is defined.

When a loop gives the wrong answer, inspect the sequence of values and the update separately. Ask whether the loop visits the intended items, whether the accumulator changes in the right place, and whether the initial value fits the operation. Then test a small case whose result you can calculate by hand. A short trace often reveals an off-by-one error sooner than rewriting the whole program.

Listen to a section, pause, and predict the next step before continuing. Then reproduce the trace on paper or in your notes. Audio is useful for revisiting an explanation while walking or commuting, but it does not replace writing code and checking its behaviour.

Review by evidence, not by time spent

At the end of a session, mark each outcome as secure, uncertain or not yet working. “Secure” means you can explain the rule and use it on a new example without looking. If uncertain, schedule a short retrieval attempt soon. If not yet working, narrow the problem: perhaps you understand the loop but are misreading its boundary, or you can write a function but confuse its return value with printed output.

Once a week, choose a mixed set of tasks from different sections. Include at least one trace, one short code-writing problem and one debugging or test-design task if those match your course. Review the exact reasoning that failed, not only whether the final answer was right. Revisit material from your own assessed work and feedback; if an assessment format or scope is unclear, check your course's official guidance rather than guessing.

Make the next study session respond to the evidence. If boundary errors recur, practise range and indexing with small traces. If your code works only for ordinary inputs, focus on edge cases and the specification. If you can write code but cannot explain it, practise a concise line-by-line explanation. This keeps revision directed at the skill that needs work.

How MySummaries helps

MySummaries lets you build a revision board from your own programming notes and course material, then use it to generate spaced-repetition flashcards and an examiner-voice audio lecture. Use the board to keep concepts connected to your course sources, and the cards and audio to revisit compact rules between hands-on coding sessions. Start at MySummaries.