Matching Widget

Configured via JavaScript

Left items, right items, and the correct index mapping are provided directly. Note that correct_matches maps left-column index → right-column index as displayed, so shuffle the right array yourself if desired.

Configured via HTML

Each row of the table defines one pair: the left cell is the prompt and the right cell is the answer. The right column is shuffled automatically.

Match each Python exception to the situation that raises it:

ZeroDivisionErrorDividing a number by zero
KeyError Accessing a missing dictionary key
TypeError Calling a function with the wrong argument type
IndexError Accessing a list element beyond its length