Practice library
CODE · THREE ORIGINAL EXERCISES

Python expression typing practice

Copy Python expressions and compact data samples, focusing on underscores, quotes and brackets. The exercise never executes Python.

0/3 passages finished on this device
Choose an exercise
Practice format

Changing the exercise or format resets the run. A time limit is a maximum: finishing the text ends the run early, using your actual active time.

Preview this exercise · 15 words · 99 characters

sample_title = "Paper map"; card_count = 12; ready = True; colour_names = ["blue", "grey", "white"]

Ready when you are
15 words · Finish at the last character
sample_title = "Paper map"; card_count = 12; ready = True; colour_names = ["blue", "grey", "white"]
The timer starts with your first keystroke.

Type the displayed passage in order. Backspace corrects the last character. Paste is disabled. Escape pauses. Control or Command plus Enter restarts. Leaving the input pauses the timer.

0%complete
—words / min
100%accuracy
No sign-up. Just you and the keys.esc pause ctrl + enter restart
 

How to practise python expression typing

Python indentation matters in real source files, but this typing engine normalises whitespace. These targets therefore use expressions and inline statements rather than an indentation assessment. Read variable names exactly and preserve string case. The lesson is a transcription drill, not a Python proficiency test or certificate.

What to check after a run

Check underscores in names and the quotes around strings. Do not replace a list bracket with a dictionary brace when the surrounding text looks similar.

Read the three original exercises

Preview the exact targets before choosing a run. Counts include spaces and punctuation after whitespace normalisation.

1. Find the pattern

sample_title = "Paper map"; card_count = 12; ready = True; colour_names = ["blue", "grey", "white"]

2. Connect the movement

sample_card = {"title": "Window study", "version": 2, "ready": False}; label = sample_card["title"].lower(); sizes = [len(name) for name in colour_names]

3. Apply it in context

drafts = [{"name": "Map A", "pages": 4}, {"name": "Map B", "pages": 6}]; page_total = sum(draft["pages"] for draft in drafts); summary = f"Sample pages: {page_total}"

Original practice lesson added 26 October 2026. Educational transcription practice; no professional assessment or qualification.