Quote:
Originally Posted by davidfor
It is Python code. Rather than using delimiters of some sort, Python uses the indent levels to indicate code blocks. The "def" line is defining a function. Any code lines in the function have to be indented under it. The indent is usually four spaces, but a single space or a tab should work.
|
that makes sense thanks - 4 spaces seemed arbitrary. The stuff in square brackets is extracting specific parts of character strings ?