The tool’s interface below is still in French. The interface is being translated by Google Translate.
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 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.
-
Choose the algorithm
Nine classic situations for middle school and seconde.
-
Renew the values
Each version has its own numbers.
-
Print
Student sheet and answer key on separate pages, or save as a PDF.
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.
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.