To add to Thantos´ lists
When indenting your code always either use a tab or a certain amount of spaces, dont use spaces and tabs together, since then the indentation can get messed up depending on how the editor of the code interpretes tabs ( that is 1 tab = 2 spaces or 1 tab can be 4 spaces ) ...
Just a tip though .
Greets,
Ganglylamb.