A few lines of code can do the work of a long explanation.
A useful example is small enough to hold in mind and complete enough to run. It gives the reader something concrete to question, change, and understand.
Start small
def twice(value):
return value + value
assert twice(21) == 42The explanation can grow from here, one decision at a time.