Python expression typing practice
Copy Python expressions and compact data samples, focusing on underscores, quotes and brackets. The exercise never executes Python.
Preview this exercise · 15 words · 99 characters
sample_title = "Paper map"; card_count = 12; ready = True; colour_names = ["blue", "grey", "white"]
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.
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.