As you can see, the indentations are wrong, one tab == one space, and there are lines with many mixed tabs and spaces.
Fix the indentation, use tabs only.
And the line with the error is closing the previous if (lower indent) so the else
is wrong.
Como puedes ver, la indentación está mal, un tab == un espacio, y hay líneas que mezclan varios tabs y espacios.
Arregla la indentación, usa tabs solamente.
Y la línea con el error está cerrando el bloque del if anterior (la indentación es menor) así que el else
está mal ubicado para el intérprete.