Ok, so instead of doing things for people, it is better to help them understand why the error was occurring. You need to keep consistent indentation. This is often cause by using both tabs and spaces for indentation. You should use only one method of indentation (tabs OR spaces). I prefer tabs because it is fewer characters and is much easier to modify later.