Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates that words in text are not plain English words, but are words belonging to a program.
The break
instruction breaks out of the while
loop (that is, execution continues beyond the end of the loop - it’s a sort of short-circuit mechanism).
In order to draw your attention to features in code, we sometimes use bold font or shading to highlight features. Consider the following example:
The text following # is in a non-monospaced font and is a comment ignored by the computer:
for i in range (0,6): # Repeat six times