Skip to content

The tool’s interface below is still in French.

Algorithm exercises: Scratch and Python

One algorithm, two notations: Scratch blocks for middle school and Python code for high school, with questions and an answer key.

Exercice

Les blocs sont ceux de Scratch 3 en français. Le code Python se copie dans n’importe quel éditeur (Thonny, Capytale, Basthon).

How it works

How to use the algorithm exercise generator

Algorithm exercises shown as Scratch blocks and in Python, with questions and answer key: calculation programs, loops, GCD, thresholds. Geared to the French curriculum.

  1. Choose the algorithm

    Nine classic situations for middle school and seconde.

  2. Renew the values

    Each version has its own numbers.

  3. Print

    Student sheet and answer key on separate pages, or save as a PDF.

FreeNo subscription, no hidden limits.
No sign-upOpen the page and use the tool. That’s it.
InstantResults in seconds, on mobile too.
PrivateEverything runs in your browser.

About the algorithm exercise generator

Showing the same algorithm in Scratch and in Python helps students move from blocks to text code, a goal for the end of middle school and seconde.

The answers in the key are computed by actually running the algorithm with the values of the exercise.

algorithm exercises scratch python scratch and python exercises euclid gcd algorithm exercise collatz sequence python calculation program algorithm python exercises for beginners algorithm worksheet
FAQ

Frequently asked questions about the algorithm exercise generator

Does the Python code work as it is?

Yes, it can be copied into Thonny, Capytale or any Python 3 editor.

Are the blocks in French?

Yes, with the official labels of Scratch 3. Several tools also offer other languages.

Can I use these sheets in class?

Yes, freely and at no cost: the documents you generate are yours, with no account and no watermark.

Esc
↑ ↓ navigateEnter open