Step 2 of 6· Choose a counterexample
Choose a counterexample
Optional arithmetic and percentage refresher — return to this activity
Use the source notes if you need them. This is public practice; feedback appears after your choice.
Python workshop: public teaching inputs
All people, records and numbers in this pack are authored teaching examples. They are not records or performance claims about real organizations.
- PY1 · Price rows are [[2, 3], [4, 2]]: each row contains quantity then credits per item. Expected line totals are 6 and 8 credits. Lists use zero-based indexing: the first item has index 0.
- PY2 · A function accepts input and returns a result. The supplied workshop demonstrates line_total(quantity, price). A branch selects an action; a loop repeats it. Negative quantity is rejected, not silently changed.
- PY3 · A test compares observed behavior with an independently calculated expectation. A passing example alone is not proof for every input. Empty, zero and malformed inputs need stated behavior.
- PY4 · Run the downloadable Python workshop locally. The page retains notes, not executed Python. Imported or pasted code is inert text. The separate reproducibility module supplies a second, scientific comparison starter.
Your selected answer and feedback are temporary and excluded from progress backups. They can return during this visit, but a full reload clears them. Your saved activity location and recorded completion or passed checks remain separate.
Decide before checking