I am writing a code which builds a decision tree and spits out the tree in the form of a code of if-else loops
<p>I am able to generate the correct if else loops. But i am not able to adjust the indentation. Is there any way of correctly indenting it?</p>

<p>If you have an indentation level that matches the decision tree depth, you should be able to just prepend four spaces for each level of indentation.</p>

python decision-tree