Modifying a python script to output data to a file - Page 2 - Python...
Indentation is how Python expresses the control flow. If we have an if-statement to do one set of commands (or, optionally, an alternative) then the indentation groups the commands. Example from your script